Commit 9fc1397a authored by Francois Cartegnie's avatar Francois Cartegnie

demux: oggseek: fix timestamp computation for opus

parent f16fd300
......@@ -804,7 +804,7 @@ int64_t Oggseek_GranuleToAbsTimestamp( logical_stream_t *p_stream,
}
else if( p_stream->fmt.i_codec == VLC_CODEC_OPUS )
{
i_timestamp = p_stream->i_pre_skip + i_granule * CLOCK_FREQ / 48000;
i_timestamp = ( i_granule - p_stream->i_pre_skip ) * CLOCK_FREQ / 48000;
}
else if( p_stream->fmt.i_codec == VLC_CODEC_VORBIS )
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment