aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2021-05-30 18:51:09 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2021-06-02 17:35:54 +0200
commit996797f8ed06e6ccb5287e18a5de88b2b0db31ec (patch)
tree2198e1741847cc53a38843c1ccebb07fb4925478
parentc297f7e57a223da9f0d350e30456d60c8c87f902 (diff)
downloadffmpeg-996797f8ed06e6ccb5287e18a5de88b2b0db31ec.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>
-rw-r--r--libavcodec/mpegvideo_enc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index c01488f483..7849cdce85 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -1846,6 +1846,7 @@ vbv_retry:
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);