[vlc-commits] [Git][videolan/vlc][master] demux: oggseek: remove bos optimization

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Sun Jul 24 10:14:11 UTC 2022



Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC


Commits:
cd79514d by Francois Cartegnie at 2022-07-24T09:13:02+00:00
demux: oggseek: remove bos optimization

prevents blind seek to start of stream as granule is never read

- - - - -


1 changed file:

- modules/demux/oggseek.c


Changes:

=====================================
modules/demux/oggseek.c
=====================================
@@ -316,9 +316,6 @@ static int64_t find_first_page_granule( demux_t *p_demux,
 
     seek_byte( p_demux, i_pos1 );
 
-    if ( i_pos1 == p_stream->i_data_start )
-        return p_sys->i_input_position;
-
     if ( i_bytes_to_read > OGGSEEK_BYTES_TO_READ ) i_bytes_to_read = OGGSEEK_BYTES_TO_READ;
 
     while ( 1 )



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/cd79514d7bfe666f72b1e88777ed69612bc7aec7

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/cd79514d7bfe666f72b1e88777ed69612bc7aec7
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list