diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-11-24 16:52:19 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-11-24 16:54:06 +0100 |
commit | 1d242f9816ac8e17a74d2f77bd903fa8076d267a (patch) | |
tree | a41be69ce97c6654c18ab4f5b8c75b8b3c7526dc /libavformat | |
parent | 9a57309665225537fd86f53fa65ee826c215ad66 (diff) | |
download | ffmpeg-1d242f9816ac8e17a74d2f77bd903fa8076d267a.tar.gz |
avformat/mpegenc: assert that premux_packet is non null
Based on: 065923b0781b06a2604f69f4e2c2407b7750a854
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mpegenc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c index d3af9e1ea7..b1515064e8 100644 --- a/libavformat/mpegenc.c +++ b/libavformat/mpegenc.c @@ -1080,8 +1080,10 @@ retry: es_size -= stream->premux_packet->unwritten_size; stream->premux_packet = stream->premux_packet->next; } - if (es_size) + if (es_size) { + av_assert0(stream->premux_packet); stream->premux_packet->unwritten_size -= es_size; + } if (remove_decoded_packets(ctx, s->last_scr) < 0) return -1; |