[Mplayer-cvslog] CVS: main/libmpcodecs/native qtrle.c,1.1,1.2
Arpi of Ize
arpi at mplayerhq.hu
Sat Jul 6 17:17:29 CEST 2002
Update of /cvsroot/mplayer/main/libmpcodecs/native
In directory mail:/var/tmp.root/cvs-serv1207
Modified Files:
qtrle.c
Log Message:
bugfix by Michael.Lampe at iwr.uni-heidelberg.de
Index: qtrle.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/native/qtrle.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- qtrle.c 23 Dec 2001 22:20:45 -0000 1.1
+++ qtrle.c 6 Jul 2002 15:17:27 -0000 1.2
@@ -61,7 +61,8 @@
{
pixel_ptr = row_ptr + ((encoded[stream_ptr++] - 1) * bytes_per_pixel);
- while ((rle_code = (signed char)encoded[stream_ptr++]) != -1)
+ while (stream_ptr < encoded_size &&
+ (rle_code = (signed char)encoded[stream_ptr++]) != -1)
{
if (rle_code == 0)
// there's another skip code in the stream
More information about the MPlayer-cvslog
mailing list