1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-01 00:07:33 +00:00

Seeking to sector boundary (STREAM_BUFFER_SIZE) for MPEGs

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@496 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
lgb 2001-04-17 22:59:25 +00:00
parent 5fad3952b2
commit 2f76b3830d

View File

@ -1908,9 +1908,7 @@ switch(file_format){
// picture->bitrate=2324*75*8; // standard VCD bitrate (75 sectors / sec)
if(newpos<seek_to_byte) newpos=seek_to_byte;
#ifdef HAVE_LIBCSS
if (dvd_device) newpos&=~(STREAM_BUFFER_SIZE-1); /* sector boundary */
#endif
newpos&=~(STREAM_BUFFER_SIZE-1); /* sector boundary */
stream_seek(demuxer->stream,newpos);
// re-sync video:
videobuf_code_len=0; // reset ES stream buffer