diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-09-14 20:48:04 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-09-14 20:48:04 +0000 |
commit | bf86cc9f876c67913c8e80ab85a8a1f5426ced49 (patch) | |
tree | bc1623e5307b44bcf4e2817bc72ddf077e1f5f14 /libmpdemux | |
parent | 9bb5a9141382a872537ef76a9b5e65246c11221d (diff) | |
download | mpv-bf86cc9f876c67913c8e80ab85a8a1f5426ced49.tar.bz2 mpv-bf86cc9f876c67913c8e80ab85a8a1f5426ced49.tar.xz |
Minor simplifications
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24505 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_ty.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libmpdemux/demux_ty.c b/libmpdemux/demux_ty.c index 3894a49414..7839136cd2 100644 --- a/libmpdemux/demux_ty.c +++ b/libmpdemux/demux_ty.c @@ -203,9 +203,9 @@ static int ty_tmf_filetoparts( demuxer_t *demux, TiVoInfo *tivo ) parts++; } - if (offset + skip >= totalsize) - break; offset += skip; + if (offset >= totalsize) + break; } tivo->tmf_totalparts = parts; mp_msg( MSGT_DEMUX, MSGL_DBG3, @@ -745,10 +745,10 @@ static int demux_ty_fill_buffer( demuxer_t *demux, demux_stream_t *dsds ) } // Collapse the Audio Buffer + tivo->lastAudioEnd -= esOffset2; memmove( &tivo->lastAudio[ 0 ], &tivo->lastAudio[ esOffset2 ], - tivo->lastAudioEnd - esOffset2 ); - tivo->lastAudioEnd -= esOffset2; + tivo->lastAudioEnd ); } } } |