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>
pull/188/merge
Rostislav Pehlivanov 9 years ago
parent 93c6c52ad7
commit f4b30beac0
  1. 2
      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;

Loading…
Cancel
Save