changeset 2925:89ce06bb1c87 libavcodec

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)
author reimar
date Fri, 28 Oct 2005 16:01:12 +0000
parents d98f385b3933
children dfdbef4bfdc5
files qtrle.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/qtrle.c	Fri Oct 28 06:37:32 2005 +0000
+++ b/qtrle.c	Fri Oct 28 16:01:12 2005 +0000
@@ -251,7 +251,7 @@
     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 @@
     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 @@
     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;