# HG changeset patch # User reimar # Date 1189794754 0 # Node ID 8b63c94876129382069c14c3b89c24d4535233af # Parent 8231358722edeb4877f1e8d432e126949bce98c1 Use AV_RB24 diff -r 8231358722ed -r 8b63c9487612 libmpdemux/demux_ty.c --- a/libmpdemux/demux_ty.c Fri Sep 14 18:31:14 2007 +0000 +++ b/libmpdemux/demux_ty.c Fri Sep 14 18:32:34 2007 +0000 @@ -685,7 +685,7 @@ 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++;