Commit a010e36f authored by Rostislav Pehlivanov's avatar Rostislav Pehlivanov

vc2enc: correctly zero out the slice size cache

Signed-off-by: 's avatarRostislav Pehlivanov <atomnuker@gmail.com>
parent 14b41e06
...@@ -715,7 +715,7 @@ static int calc_slice_sizes(VC2EncContext *s) ...@@ -715,7 +715,7 @@ static int calc_slice_sizes(VC2EncContext *s)
args->y = slice_y; args->y = slice_y;
args->bits_ceil = s->slice_max_bytes << 3; args->bits_ceil = s->slice_max_bytes << 3;
args->bits_floor = s->slice_min_bytes << 3; args->bits_floor = s->slice_min_bytes << 3;
memset(args, 0, s->q_ceil*sizeof(int)); memset(args->cache, 0, s->q_ceil*sizeof(*args->cache));
} }
} }
......
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