changeset 24466:f44f604dd68a

Simplify AV_RB32 / 256 -> AV_RB24
author reimar
date Fri, 14 Sep 2007 18:26:55 +0000
parents 8eb74a8f8da7
children 8231358722ed
files libmpdemux/demux_ty.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ty.c	Fri Sep 14 18:23:13 2007 +0000
+++ b/libmpdemux/demux_ty.c	Fri Sep 14 18:26:55 2007 +0000
@@ -589,8 +589,7 @@
                   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;