diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2018-12-14 21:52:09 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-03-24 10:38:51 +0100 |
commit | f9b7c87145d20363f2aa027b62e5aac9afb927f6 (patch) | |
tree | 61b626b4fe2ccd52adfc3a8a2c4b86e23ce32e52 | |
parent | cb901e183608b58b6ed9aea0f11c77b20967fe0e (diff) | |
download | ffmpeg-f9b7c87145d20363f2aa027b62e5aac9afb927f6.tar.gz |
avformat/nutenc: Document trailer index assert better
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 3a95b73abc868995b08ca2b4d8bbf2cda43184f8)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavformat/nutenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c index a92ff55c01..e9a3bb49db 100644 --- a/libavformat/nutenc.c +++ b/libavformat/nutenc.c @@ -1172,7 +1172,7 @@ static int nut_write_trailer(AVFormatContext *s) ret = avio_open_dyn_buf(&dyn_bc); if (ret >= 0 && nut->sp_count) { - av_assert1(nut->write_index); + av_assert1(nut->write_index); // sp_count should be 0 if no index is going to be written write_index(nut, dyn_bc); put_packet(nut, bc, dyn_bc, 1, INDEX_STARTCODE); } |