summaryrefslogtreecommitdiff
path: root/libavformat/nutdec.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-01-15 00:39:23 +0100
committerLuca Barbato <lu_zero@gentoo.org>2013-01-15 02:15:09 +0100
commitd8c772de53d29afb1bada88afa859fce8489c668 (patch)
tree046d8131c6ee3cad9f75f0b3a2d9d3e1ebdc03ff /libavformat/nutdec.c
parent99853cb8d4237b810b2fffb4a34f66fd0064ef72 (diff)
nutdec: Always return a value from nut_read_timestamp()
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>
Diffstat (limited to 'libavformat/nutdec.c')
-rw-r--r--libavformat/nutdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index b705987795..cee411b601 100644
--- a/libavformat/nutdec.c
+++ b/libavformat/nutdec.c
@@ -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,