[FFmpeg-cvslog] avformat/nutenc: replace conditional by assert
Michael Niedermayer
git at videolan.org
Thu May 29 04:32:25 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu May 29 04:25:26 2014 +0200| [78a79a2ceb63e0fff84de978f1373810ee1bc5d7] | committer: Michael Niedermayer
avformat/nutenc: replace conditional by assert
Its implied by sp_count==0
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=78a79a2ceb63e0fff84de978f1373810ee1bc5d7
---
libavformat/nutenc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c
index 9920a39..dfb7992 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);
}
More information about the ffmpeg-cvslog
mailing list