changeset 22894:8912a629ebb1

Length of interleaved RTSP frames (0x24) in only 16 bit, the other byte is the channel number (normally 0)
author rtogni
date Tue, 03 Apr 2007 21:36:36 +0000
parents 777031848801
children baebaabc0547
files stream/realrtsp/real.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/realrtsp/real.c	Tue Apr 03 17:00:27 2007 +0000
+++ b/stream/realrtsp/real.c	Tue Apr 03 21:36:36 2007 +0000
@@ -352,7 +352,8 @@
       header[0]);
     return 0;
   }
-  size=(header[1]<<16)+(header[2]<<8)+(header[3]);
+  /* header[1] is channel, normally 0, ignored */
+  size=(header[2]<<8)+header[3];
   flags1=header[4];
   if ((flags1!=0x40)&&(flags1!=0x42)&&(flags1!=0x41))
   {