diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-11-22 12:16:57 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-11-27 03:31:54 +0100 |
commit | 883de7e8b4fee252464b15e0351c6e5733e36e54 (patch) | |
tree | 610842ad28e3bf01e60573739f2fd64b03cee52a /libavformat | |
parent | 9cc926da7d9920d17b76584e7212309ab5c02387 (diff) | |
download | ffmpeg-883de7e8b4fee252464b15e0351c6e5733e36e54.tar.gz |
libavformat/mov: Replace duplicate stream_nb check by assert
Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mov.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index ddb1e59b85..f6c86635b1 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -2438,8 +2438,7 @@ int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries) MOVStreamContext *sc; int pseudo_stream_id; - if (c->fc->nb_streams < 1) - return 0; + av_assert0 (c->fc->nb_streams >= 1); st = c->fc->streams[c->fc->nb_streams-1]; sc = st->priv_data; |