rle_code can overflow when multiplied by 4
authorRoberto Togni <r_togni@tiscali.it>
Sat, 14 Feb 2004 18:12:36 +0000 (18:12 +0000)
committerRoberto Togni <r_togni@tiscali.it>
Sat, 14 Feb 2004 18:12:36 +0000 (18:12 +0000)
(fixes Animation-256Greys.mov from mphq)

Originally committed as revision 2786 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/qtrle.c

index c110272..29e777b 100644 (file)
@@ -84,7 +84,7 @@ static void qtrle_decode_8bpp(QtrleContext *s)
     int header;
     int start_line;
     int lines_to_change;
-    signed char rle_code;
+    int rle_code;
     int row_ptr, pixel_ptr;
     int row_inc = s->frame.linesize[0];
     unsigned char pi1, pi2, pi3, pi4;  /* 4 palette indices */