[FFmpeg-cvslog] avformat/nutenc: Document trailer index assert better
Michael Niedermayer
git at videolan.org
Tue Jan 15 02:18:32 EET 2019
ffmpeg | branch: release/3.2 | Michael Niedermayer <michael at niedermayer.cc> | Fri Dec 14 21:52:09 2018 +0100| [9925adcd68471459aa60d6a3e2895cec5f2be85b] | committer: Michael Niedermayer
avformat/nutenc: Document trailer index assert better
Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 3a95b73abc868995b08ca2b4d8bbf2cda43184f8)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9925adcd68471459aa60d6a3e2895cec5f2be85b
---
libavformat/nutenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c
index 9e422e1aa8..b4bd411535 100644
--- a/libavformat/nutenc.c
+++ b/libavformat/nutenc.c
@@ -1191,7 +1191,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);
}
More information about the ffmpeg-cvslog
mailing list