diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-05-29 04:25:26 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-29 04:26:18 +0200 |
commit | 78a79a2ceb63e0fff84de978f1373810ee1bc5d7 (patch) | |
tree | b9475e46150677407dd9bdd974a35e0d5822101a /libavformat/nutenc.c | |
parent | 6d1aba6a29b477ae69ca527812f10db5c025cf91 (diff) | |
download | ffmpeg-78a79a2ceb63e0fff84de978f1373810ee1bc5d7.tar.gz |
avformat/nutenc: replace conditional by assert
Its implied by sp_count==0
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/nutenc.c')
-rw-r--r-- | libavformat/nutenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c index 9920a39da3..dfb7992da3 100644 --- a/libavformat/nutenc.c +++ b/libavformat/nutenc.c @@ -1166,7 +1166,8 @@ static int nut_write_trailer(AVFormatContext *s) write_headers(s, bc); ret = avio_open_dyn_buf(&dyn_bc); - if (ret >= 0 && nut->sp_count && nut->write_index) { + if (ret >= 0 && nut->sp_count) { + av_assert1(nut->write_index); write_index(nut, dyn_bc); put_packet(nut, bc, dyn_bc, 1, INDEX_STARTCODE); } |