Commit f4b30bea authored by Rostislav Pehlivanov's avatar 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: 's avatarRostislav Pehlivanov <atomnuker@gmail.com>
parent 93c6c52a
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment