aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthieu Castet <castet.matthieu@free.fr>2005-10-28 16:01:12 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2005-10-28 16:01:12 +0000
commit5b0e811a65737463c7e4206b68a23e19d4473519 (patch)
treef086aed3ff1b9f56eed4db40f7d946b09166dff5
parent0f72508c107ca261f5dbb9a3467168395f188dcf (diff)
downloadffmpeg-5b0e811a65737463c7e4206b68a23e19d4473519.tar.gz
Make rle_code int everywhere instead of signed char.
Fixes playback of auth_generator-demo.mov, for rle_code == -128 the assignement rle_code = -rle_code would overflow. Patch by matthieu castet (castet matthieu (at) free fr) Originally committed as revision 4669 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/qtrle.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/qtrle.c b/libavcodec/qtrle.c
index 0d79c5c9ed..c5161c0774 100644
--- a/libavcodec/qtrle.c
+++ b/libavcodec/qtrle.c
@@ -251,7 +251,7 @@ static void qtrle_decode_16bpp(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 short rgb16;
@@ -329,7 +329,7 @@ static void qtrle_decode_24bpp(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 r, g, b;
@@ -408,7 +408,7 @@ static void qtrle_decode_32bpp(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 r, g, b;