diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-09-08 23:44:34 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-09-08 23:44:34 +0000 |
commit | e8452368cfee3395be199ce75638e7f730a97e21 (patch) | |
tree | 3785f1d00901d5b5a47e6e875ca1e96d5ede90eb /libmpdemux/realrtsp | |
parent | 3d6e5d3644f5a64222064e04f4f8a8c87cab32f3 (diff) |
chunk size fix from Ross Finlayson, ported from xine
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13290 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/realrtsp')
-rw-r--r-- | libmpdemux/realrtsp/real.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpdemux/realrtsp/real.c b/libmpdemux/realrtsp/real.c index 7e023ba961..ae5b469cfd 100644 --- a/libmpdemux/realrtsp/real.c +++ b/libmpdemux/realrtsp/real.c @@ -611,7 +611,7 @@ int real_get_rdt_chunk(rtsp_t *rtsp_session, char **buffer) { 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 @@ int real_get_rdt_chunk(rtsp_t *rtsp_session, char **buffer) { } 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); |