diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2016-03-23 17:48:05 +0000 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2016-03-23 17:52:53 +0000 |
commit | a010e36f23dfe279a5af6ba8332c4f3bf7d91d2d (patch) | |
tree | 982b73b7bf04d2163f273316867f969e2e7ac291 | |
parent | 14b41e061db641150bee90e476bf86731be89a6e (diff) | |
download | ffmpeg-a010e36f23dfe279a5af6ba8332c4f3bf7d91d2d.tar.gz |
vc2enc: correctly zero out the slice size cache
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
-rw-r--r-- | libavcodec/vc2enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vc2enc.c b/libavcodec/vc2enc.c index 3f65424e35..46a5fe101c 100644 --- a/libavcodec/vc2enc.c +++ b/libavcodec/vc2enc.c @@ -715,7 +715,7 @@ static int calc_slice_sizes(VC2EncContext *s) args->y = slice_y; args->bits_ceil = s->slice_max_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)); } } |