changeset 24468:8b63c9487612

Use AV_RB24
author reimar
date Fri, 14 Sep 2007 18:32:34 +0000
parents 8231358722ed
children afbab72dbf2c
files libmpdemux/demux_ty.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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++;