[Mplayer-cvslog] CVS: main/libmpcodecs/native qtrle.c,1.1,1.2
Arpi of Ize
arpi at mplayerhq.hu
Fri Jul 5 00:19:54 CEST 2002
Update of /cvsroot/mplayer/main/libmpcodecs/native
In directory mail:/var/tmp.root/cvs-serv28192/libmpcodecs/native
Modified Files:
qtrle.c
Log Message:
subrip sometimes uses pipe as newline separator - patch by MOLNAR Andor <dolphy at inf.elte.hu>
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 4 Jul 2002 22:19:52 -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