[MPlayer-cvslog] r24488 - trunk/libmpdemux/demux_ty.c

reimar subversion at mplayerhq.hu
Fri Sep 14 20:32:35 CEST 2007


Author: reimar
Date: Fri Sep 14 20:32:34 2007
New Revision: 24488

Log:
Use AV_RB24


Modified:
   trunk/libmpdemux/demux_ty.c

Modified: trunk/libmpdemux/demux_ty.c
==============================================================================
--- trunk/libmpdemux/demux_ty.c	(original)
+++ trunk/libmpdemux/demux_ty.c	Fri Sep 14 20:32:34 2007
@@ -685,7 +685,7 @@ static int demux_ty_fill_buffer( demuxer
    offset = numberRecs * 16 + 4;
    for ( counter = 0 ; counter < numberRecs ; counter++ )
    {
-      size = ( recPtr[ 0 ] << 8 | recPtr[ 1 ] ) << 4 | ( recPtr[ 2 ] >> 4 );
+      size = AV_RB24(recPtr) >> 4;
       type = recPtr[ 3 ];
       nybbleType = recPtr[ 2 ] & 0x0f;
       recordsDecoded++;



More information about the MPlayer-cvslog mailing list