diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2004-09-08 15:09:30 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2004-09-08 15:09:30 +0000 |
commit | 6f67ce680366c3d917c7db84a7d8077a854e6d22 (patch) | |
tree | 085ed6804a20728ddac90fdc4c434079a05c5bfc | |
parent | 9ceff89560476055bf00c8c0e89d0f90c1af75de (diff) | |
download | xine-lib-6f67ce680366c3d917c7db84a7d8077a854e6d22.tar.gz xine-lib-6f67ce680366c3d917c7db84a7d8077a854e6d22.tar.bz2 |
chunk size fix from Ross Finlayson
better late than never ;-)
CVS patchset: 6949
CVS date: 2004/09/08 15:09:30
-rw-r--r-- | src/input/libreal/real.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input/libreal/real.c b/src/input/libreal/real.c index efc445645..17e470462 100644 --- a/src/input/libreal/real.c +++ b/src/input/libreal/real.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: real.c,v 1.18 2004/04/24 20:43:57 miguelfreitas Exp $ + * $Id: real.c,v 1.19 2004/09/08 15:09:30 miguelfreitas Exp $ * * special functions for real streams. * adopted from joschkas real tools. @@ -556,7 +556,7 @@ int real_get_rdt_chunk(rtsp_t *rtsp_session, unsigned char **buffer) { lprintf("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)) { @@ -580,7 +580,7 @@ int real_get_rdt_chunk(rtsp_t *rtsp_session, unsigned char **buffer) { flags1=header[4]; size-=9; } - 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); |