[FFmpeg-cvslog] vc2enc: increase the starting value of the size scaler

Rostislav Pehlivanov git at videolan.org
Fri Mar 18 12:59:42 CET 2016


ffmpeg | branch: master | Rostislav Pehlivanov <atomnuker at gmail.com> | Fri Mar 18 11:55:48 2016 +0000| [f4b30beac0c1a70d6da1e3ffe1e74e9e55397d8e] | committer: Rostislav Pehlivanov

vc2enc: increase the starting value of the  size scaler

In some cases this caused the slice size rounding to generate invalid
slice sizes and overwrite some slices.

Signed-off-by: Rostislav Pehlivanov <atomnuker at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f4b30beac0c1a70d6da1e3ffe1e74e9e55397d8e
---

 libavcodec/vc2enc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/vc2enc.c b/libavcodec/vc2enc.c
index 3bc60a3..f110dfc 100644
--- a/libavcodec/vc2enc.c
+++ b/libavcodec/vc2enc.c
@@ -971,7 +971,7 @@ static av_cold int vc2_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
     int64_t max_frame_bytes, r_bitrate = avctx->bit_rate >> (s->interlaced);
 
     s->avctx = avctx;
-    s->size_scaler = 1;
+    s->size_scaler = 2;
     s->prefix_bytes = 0;
     s->last_parse_code = 0;
     s->next_parse_offset = 0;



More information about the ffmpeg-cvslog mailing list