[FFmpeg-cvslog] vc2enc: correctly zero out the slice size cache
Rostislav Pehlivanov
git at videolan.org
Wed Mar 23 19:08:52 CET 2016
ffmpeg | branch: master | Rostislav Pehlivanov <atomnuker at gmail.com> | Wed Mar 23 17:48:05 2016 +0000| [a010e36f23dfe279a5af6ba8332c4f3bf7d91d2d] | committer: Rostislav Pehlivanov
vc2enc: correctly zero out the slice size cache
Signed-off-by: Rostislav Pehlivanov <atomnuker at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a010e36f23dfe279a5af6ba8332c4f3bf7d91d2d
---
libavcodec/vc2enc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/vc2enc.c b/libavcodec/vc2enc.c
index 3f65424..46a5fe1 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));
}
}
More information about the ffmpeg-cvslog
mailing list