[FFmpeg-cvslog] avcodec/mpegvideo_enc: Reset stuffing bits if they are not supported
Michael Niedermayer
git at videolan.org
Wed Jun 2 19:02:00 EEST 2021
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sun May 30 18:51:09 2021 +0200| [996797f8ed06e6ccb5287e18a5de88b2b0db31ec] | committer: Michael Niedermayer
avcodec/mpegvideo_enc: Reset stuffing bits if they are not supported
Fixes: Assertion failure
Fixes: Ticket8202
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=996797f8ed06e6ccb5287e18a5de88b2b0db31ec
---
libavcodec/mpegvideo_enc.c | 1 +
1 file changed, 1 insertion(+)
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);
More information about the ffmpeg-cvslog
mailing list