aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2018-12-14 21:52:09 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2019-12-02 15:45:24 +0100
commit8381cbf692f4214d44b65bf06c99d1b240b6789e (patch)
tree43a901a308a8e4f09e7184dfc9d0d803f9ea089c
parentacd49222eb03e10e8ac2191a508063d0e6f782df (diff)
downloadffmpeg-8381cbf692f4214d44b65bf06c99d1b240b6789e.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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c
index 49d62bfbec..96bf0dafe8 100644
--- a/libavformat/nutenc.c
+++ b/libavformat/nutenc.c
@@ -1181,7 +1181,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);
}