]> git.sesse.net Git - ffmpeg/commitdiff
nutdec: Always return a value from nut_read_timestamp()
authorDiego Biurrun <diego@biurrun.de>
Mon, 14 Jan 2013 23:39:23 +0000 (00:39 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 15 Jan 2013 01:15:09 +0000 (02:15 +0100)
The function is a callback that is called by ff_gen_search with
a constant stream index.

Avoid a false positive on older gcc version.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavformat/nutdec.c

index b7059877956cd8e2c75eee4653d636232a21683f..cee411b60164785753c5d7abda28d071dedd0ead 100644 (file)
@@ -910,7 +910,7 @@ static int64_t nut_read_timestamp(AVFormatContext *s, int stream_index,
     else if (stream_index == -2)
         return back_ptr;
 
-    assert(0);
+    return AV_NOPTS_VALUE;
 }
 
 static int read_seek(AVFormatContext *s, int stream_index,