[Mplayer-cvslog] CVS: main/libmpdemux/realrtsp real.c,1.7,1.8

Diego Biurrun CVS syncmail at mplayerhq.hu
Thu Sep 9 01:44:36 CEST 2004


CVS change done by Diego Biurrun CVS

Update of /cvsroot/mplayer/main/libmpdemux/realrtsp
In directory mail:/var2/tmp/cvs-serv22483/libmpdemux/realrtsp

Modified Files:
	real.c 
Log Message:
chunk size fix from Ross Finlayson, ported from xine


Index: real.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/realrtsp/real.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- real.c	18 Jul 2004 04:23:38 -0000	1.7
+++ real.c	8 Sep 2004 23:44:34 -0000	1.8
@@ -611,7 +611,7 @@
     printf("rdt chunk not recognized: got 0x%02x\n", header[0]);
     return 0;
   }
-  size=(header[1]<<12)+(header[2]<<8)+(header[3]);
+  size=(header[1]<<16)+(header[2]<<8)+(header[3]);
   flags1=header[4];
   if ((flags1!=0x40)&&(flags1!=0x42))
   {
@@ -634,7 +634,7 @@
   }
   flags2=header[7];
   // header[5..6] == frame number in stream
-  unknown1=(header[5]<<12)+(header[6]<<8)+(header[7]);
+  unknown1=(header[5]<<16)+(header[6]<<8)+(header[7]);
   n=rtsp_read_data(rtsp_session, header, 6);
   if (n<6) return 0;
   ts=BE_32(header);




More information about the MPlayer-cvslog mailing list