aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorRoberto Togni <r_togni@tiscali.it>2004-02-14 18:12:36 +0000
committerRoberto Togni <r_togni@tiscali.it>2004-02-14 18:12:36 +0000
commite102fcf7f0f78bbdd395f05bb5b2fca83297749b (patch)
tree7e566af3e492dbce884c399abb368aa175f06413 /libavcodec
parent50ee2c4131f1c6be6238a5db5d6b477111005a82 (diff)
downloadffmpeg-e102fcf7f0f78bbdd395f05bb5b2fca83297749b.tar.gz
rle_code can overflow when multiplied by 4
(fixes Animation-256Greys.mov from mphq) Originally committed as revision 2786 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/qtrle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/qtrle.c b/libavcodec/qtrle.c
index c110272941..29e777b31f 100644
--- a/libavcodec/qtrle.c
+++ b/libavcodec/qtrle.c
@@ -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 */