Skip to content
Snippets Groups Projects
Commit f4b30bea authored by Rostislav Pehlivanov's avatar Rostislav Pehlivanov
Browse files

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: default avatarRostislav Pehlivanov <atomnuker@gmail.com>
parent 93c6c52a
No related branches found
No related tags found
No related merge requests found
...@@ -971,7 +971,7 @@ static av_cold int vc2_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, ...@@ -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); int64_t max_frame_bytes, r_bitrate = avctx->bit_rate >> (s->interlaced);
s->avctx = avctx; s->avctx = avctx;
s->size_scaler = 1; s->size_scaler = 2;
s->prefix_bytes = 0; s->prefix_bytes = 0;
s->last_parse_code = 0; s->last_parse_code = 0;
s->next_parse_offset = 0; s->next_parse_offset = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment