1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-03 12:47:49 +00:00

removed duplicated code in demux_seek(); stream_seek() already aligns to STREAM_BUFFER_SIZE boundary

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22370 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nicodvb 2007-02-27 20:22:05 +00:00
parent 09262ff552
commit 5ad12e4fbb
2 changed files with 0 additions and 11 deletions

View File

@ -892,11 +892,6 @@ void demux_seek_mpg(demuxer_t *demuxer,float rel_seek_secs,float audio_delay, in
if(newpos<demuxer->movi_start) newpos=demuxer->movi_start;
}
#ifdef _LARGEFILE_SOURCE
newpos&=~((long long)STREAM_BUFFER_SIZE-1); /* sector boundary */
#else
newpos&=~(STREAM_BUFFER_SIZE-1); /* sector boundary */
#endif
stream_seek(demuxer->stream,newpos);
// re-sync video:

View File

@ -3111,12 +3111,6 @@ static void demux_seek_ts(demuxer_t *demuxer, float rel_seek_secs, float audio_d
if(newpos < demuxer->movi_start)
newpos = demuxer->movi_start; //begininng of stream
#ifdef _LARGEFILE_SOURCE
newpos &= ~((long long) (STREAM_BUFFER_SIZE - 1)); /* sector boundary */
#else
newpos &= ~(STREAM_BUFFER_SIZE - 1); /* sector boundary */
#endif
stream_seek(demuxer->stream, newpos);
for(i = 0; i < 8192; i++)
if(priv->ts.pids[i] != NULL)