changeset 13289:2cb80075204c

chunk size fix from Ross Finlayson, ported from xine
author diego
date Wed, 08 Sep 2004 23:44:34 +0000
parents 78d00bbba153
children fb8f8882fb6a
files libmpdemux/realrtsp/real.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/realrtsp/real.c	Wed Sep 08 15:31:47 2004 +0000
+++ b/libmpdemux/realrtsp/real.c	Wed Sep 08 23:44:34 2004 +0000
@@ -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);