diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-09-03 21:54:44 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-09-03 22:17:00 +0200 |
commit | 9ed53d5a8a9673e2178a4d6eb3a9fc12ebfbc323 (patch) | |
tree | ca8bc0579dedcec7f1ca1cef6213faf61f21f7a8 | |
parent | 280d140cb02b91d213f7016152fa7ab7b2cb0e75 (diff) | |
download | ffmpeg-9ed53d5a8a9673e2178a4d6eb3a9fc12ebfbc323.tar.gz |
avformat/mov: Change the type of the r/g/b variables
Fixes integer overflow
Fixes: unknown_unknown_31b_795_cov_1818643045_raybauduc.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavformat/mov.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 764a7b1411..92d90dbb30 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1710,7 +1710,7 @@ static void mov_parse_stsd_video(MOVContext *c, AVIOContext *pb, if ((color_depth == 2) || (color_depth == 4) || (color_depth == 8)) { /* for palette traversal */ unsigned int color_start, color_count, color_end; - unsigned char a, r, g, b; + unsigned int a, r, g, b; if (color_greyscale) { int color_index, color_dec; |