From a8871e32465a0e459964c0f9eb01de0590835214 Mon Sep 17 00:00:00 2001 From: Francois Cartegnie <fcvlcdev@free.fr> Date: Wed, 24 Aug 2022 13:34:06 +0200 Subject: [PATCH] demux: ogg: remove bogus optimization We can't assume page are small. and seeks to wrong/outside of stream pos if stream does not start time 0 --- modules/demux/oggseek.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/modules/demux/oggseek.c b/modules/demux/oggseek.c index e5c43dcb078c..5a6b89d8d638 100644 --- a/modules/demux/oggseek.c +++ b/modules/demux/oggseek.c @@ -790,15 +790,7 @@ int Oggseek_BlindSeektoAbsoluteTime( demux_t *p_demux, logical_stream_t *p_strea b_found = true; } - /* Or try to be smart with audio fixed bitrate streams */ - if ( !b_found && p_stream->fmt.i_cat == AUDIO_ES && p_sys->i_streams == 1 - && p_sys->i_bitrate && Ogg_GetKeyframeGranule( p_stream, 0xFF00FF00 ) == 0xFF00FF00 ) - { - /* But only if there's no keyframe/preload requirements */ - /* FIXME: add function to get preload time by codec, ex: opus */ - i_lowerpos = VLC_TICK_0 + (i_time - VLC_TICK_0) * p_sys->i_bitrate / (CLOCK_FREQ * 8); - b_found = true; - } + /* FIXME: add function to get preload time by codec, ex: opus */ /* or search */ if ( !b_found && b_fastseek ) -- GitLab