ffmpeg | branch: master | Michael Niedermayer <[email protected]> | Wed Jul 1 14:28:41 2015 +0200| [60ec3007e69ce8c5ae540c81b0bd21c1ebe1543a] | committer: Michael Niedermayer
avformat/nutdec: Check ff_gen_search() for failure Fixes assertion failure Found-by: durandal_1707 Signed-off-by: Michael Niedermayer <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=60ec3007e69ce8c5ae540c81b0bd21c1ebe1543a --- libavformat/nutdec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c index 606deaa..63b0cd2 100644 --- a/libavformat/nutdec.c +++ b/libavformat/nutdec.c @@ -1280,6 +1280,8 @@ static int read_seek(AVFormatContext *s, int stream_index, next_node[1]->pos, next_node[1]->pos, next_node[0]->ts, next_node[1]->ts, AVSEEK_FLAG_BACKWARD, &ts, nut_read_timestamp); + if (pos < 0) + return pos; if (!(flags & AVSEEK_FLAG_BACKWARD)) { dummy.pos = pos + 16; _______________________________________________ ffmpeg-cvslog mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
