Skip to content
Snippets Groups Projects
Commit a8871e32 authored by François Cartegnie's avatar François Cartegnie :fingers_crossed: Committed by Steve Lhomme
Browse files

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
parent 19e5ec79
No related branches found
No related tags found
1 merge request!2454demux: ogg: vorbis/theora and backward pts computation fixes
......@@ -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 )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment