[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec qtrle.c,1.7,1.8

Reimar Döffinger CVS reimar
Fri Oct 28 18:01:15 CEST 2005


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv28871

Modified Files:
	qtrle.c 
Log Message:
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)


Index: qtrle.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/qtrle.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- qtrle.c	13 Aug 2005 17:46:09 -0000	1.7
+++ qtrle.c	28 Oct 2005 16:01:12 -0000	1.8
@@ -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;





More information about the ffmpeg-cvslog mailing list