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

reimar subversion at mplayerhq.hu
Fri Sep 14 20:26:55 CEST 2007


Author: reimar
Date: Fri Sep 14 20:26:55 2007
New Revision: 24486

Log:
Simplify AV_RB32 / 256 -> 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:26:55 2007
@@ -589,8 +589,7 @@ static int demux_ty_fill_buffer( demuxer
                   pesFileId = AV_RB32(chunk);
                   if ( pesFileId == TIVO_PES_FILEID )
                   {
-                     size = AV_RB32(chunk + 12);
-                     size /= 256;
+                     size = AV_RB24(chunk + 12);
                      size -= 4;
                      size *= CHUNKSIZE;
                      tivo->size = numberParts * TIVO_PART_LENGTH;



More information about the MPlayer-cvslog mailing list