[FFmpeg-devel] [PATCH 3/3] avcodec/mpegvideo_enc: Reset stuffing bits if they are not supported
Michael Niedermayer
michael at niedermayer.cc
Sun May 30 21:02:55 EEST 2021
Fixes: Assertion failure
Fixes: Ticket8202
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavcodec/mpegvideo_enc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index 13618394a5..38dde3702a 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -1850,6 +1850,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);
--
2.17.1
More information about the ffmpeg-devel
mailing list