[FFmpeg-devel] [PATCH] replace magic number with size of array
webmaster at mohammadg.com
webmaster at mohammadg.com
Mon Nov 23 18:03:46 CET 2015
From: Mohammad Ghasembeigi <webmaster at mohammadg.com>
---
libavcodec/dsicinvideo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/dsicinvideo.c b/libavcodec/dsicinvideo.c
index f95cbc7..cb5baf8 100644
--- a/libavcodec/dsicinvideo.c
+++ b/libavcodec/dsicinvideo.c
@@ -100,7 +100,7 @@ static int cin_decode_huffman(const unsigned char *src, int src_size,
unsigned char *dst_end = dst + dst_size;
const unsigned char *src_end = src + src_size;
- memcpy(huff_code_table, src, 15);
+ memcpy(huff_code_table, src, sizeof(huff_code_table));
src += 15;
while (src < src_end) {
--
1.9.5.msysgit.1
More information about the ffmpeg-devel
mailing list