1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-04 14:12:10 +00:00

Simplify AV_RB32 / 256 -> AV_RB24

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24486 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2007-09-14 18:26:55 +00:00
parent 394304bd5a
commit b65c7919ca

View File

@ -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;