diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2021-05-30 18:51:09 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2021-06-18 20:53:56 +0200 |
commit | 78b71acab71842317b462786aa26767de9f777f3 (patch) | |
tree | ed75b94bdcb4448204ad4f2c4105e923fda25e33 | |
parent | 478c5d838b456508a3b470d9a8aa1b799c71a445 (diff) | |
download | ffmpeg-78b71acab71842317b462786aa26767de9f777f3.tar.gz |
avcodec/mpegvideo_enc: Reset stuffing bits if they are not supported
Fixes: Assertion failure
Fixes: Ticket8202
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 996797f8ed06e6ccb5287e18a5de88b2b0db31ec)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index eb13d57d2b..69eabc08fe 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -2016,6 +2016,7 @@ FF_ENABLE_DEPRECATION_WARNINGS break; default: av_log(avctx, AV_LOG_ERROR, "vbv buffer overflow\n"); + s->stuffing_bits = 0; } flush_put_bits(&s->pb); s->frame_bits = put_bits_count(&s->pb); |