From b65c7919cab32e2b4d8d577915c6143b9c4a89ea Mon Sep 17 00:00:00 2001 From: reimar Date: Fri, 14 Sep 2007 18:26:55 +0000 Subject: [PATCH] Simplify AV_RB32 / 256 -> AV_RB24 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24486 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_ty.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libmpdemux/demux_ty.c b/libmpdemux/demux_ty.c index 705bbb3a7c..e28719e3c4 100644 --- a/libmpdemux/demux_ty.c +++ b/libmpdemux/demux_ty.c @@ -589,8 +589,7 @@ static int demux_ty_fill_buffer( demuxer_t *demux, demux_stream_t *dsds ) 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;