aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRostislav Pehlivanov <atomnuker@gmail.com>2016-03-18 11:55:48 +0000
committerRostislav Pehlivanov <atomnuker@gmail.com>2016-03-18 11:55:48 +0000
commitf4b30beac0c1a70d6da1e3ffe1e74e9e55397d8e (patch)
tree298d5a774154cc2accd9d6a7ef1b1baa004687c9
parent93c6c52ad7e5d41eb31cde24c1d49b4a448b4818 (diff)
downloadffmpeg-f4b30beac0c1a70d6da1e3ffe1e74e9e55397d8e.tar.gz
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@gmail.com>
-rw-r--r--libavcodec/vc2enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vc2enc.c b/libavcodec/vc2enc.c
index 3bc60a3042..f110dfc838 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;