Commit 6840e06b authored by rtognimp's avatar rtognimp

rle_code can overflow when multiplied by 4

(fixes Animation-256Greys.mov from mphq)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2786 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 675c00f5
...@@ -84,7 +84,7 @@ static void qtrle_decode_8bpp(QtrleContext *s) ...@@ -84,7 +84,7 @@ static void qtrle_decode_8bpp(QtrleContext *s)
int header; int header;
int start_line; int start_line;
int lines_to_change; int lines_to_change;
signed char rle_code; int rle_code;
int row_ptr, pixel_ptr; int row_ptr, pixel_ptr;
int row_inc = s->frame.linesize[0]; int row_inc = s->frame.linesize[0];
unsigned char pi1, pi2, pi3, pi4; /* 4 palette indices */ unsigned char pi1, pi2, pi3, pi4; /* 4 palette indices */
......
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