diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-09-11 17:20:08 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-09-11 17:50:14 +0200 |
commit | a990a308835f11461595fa15d66ab4348254bbf6 (patch) | |
tree | 1d013d15e3981ef2fd52669ac1c9c2fcb0d7d93c /libavcodec/mpegvideo_enc.c | |
parent | 2fe8fd394829d44fd2ac5c7ac30ff01d8f228dd0 (diff) | |
download | ffmpeg-streaming-a990a308835f11461595fa15d66ab4348254bbf6.zip ffmpeg-streaming-a990a308835f11461595fa15d66ab4348254bbf6.tar.gz |
ratecontrol: correct predictor in case of stuffing
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpegvideo_enc.c')
-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 d8290a7..ab6115b 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -1579,6 +1579,7 @@ vbv_retry: s->frame_bits = put_bits_count(&s->pb); stuffing_count = ff_vbv_update(s, s->frame_bits); + s->stuffing_bits = 8*stuffing_count; if (stuffing_count) { if (s->pb.buf_end - s->pb.buf - (put_bits_count(&s->pb) >> 3) < stuffing_count + 50) { |