mirror of
https://github.com/mpv-player/mpv
synced 2025-04-11 04:01:31 +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:
parent
5fad3952b2
commit
2f76b3830d
@ -1908,9 +1908,7 @@ switch(file_format){
|
|||||||
// picture->bitrate=2324*75*8; // standard VCD bitrate (75 sectors / sec)
|
// picture->bitrate=2324*75*8; // standard VCD bitrate (75 sectors / sec)
|
||||||
|
|
||||||
if(newpos<seek_to_byte) newpos=seek_to_byte;
|
if(newpos<seek_to_byte) newpos=seek_to_byte;
|
||||||
#ifdef HAVE_LIBCSS
|
newpos&=~(STREAM_BUFFER_SIZE-1); /* sector boundary */
|
||||||
if (dvd_device) newpos&=~(STREAM_BUFFER_SIZE-1); /* sector boundary */
|
|
||||||
#endif
|
|
||||||
stream_seek(demuxer->stream,newpos);
|
stream_seek(demuxer->stream,newpos);
|
||||||
// re-sync video:
|
// re-sync video:
|
||||||
videobuf_code_len=0; // reset ES stream buffer
|
videobuf_code_len=0; // reset ES stream buffer
|
||||||
|
Loading…
Reference in New Issue
Block a user