[vlc-devel] [PATCH 11/11] demux: wav: fix wrong pts after a seek
Francois Cartegnie
fcvlcdev at free.fr
Fri Mar 13 10:41:38 CET 2020
Le 12/03/2020 à 14:56, Thomas Guillem a écrit :
> ---
> + uint64_t ofs = vlc_stream_Tell( p_demux->s );
> + if( unlikely( ofs < p_sys->i_data_pos ) )
> + return VLC_SUCCESS;
> +
> + ofs -= p_sys->i_data_pos;
> + vlc_tick_t pts = ofs * INT64_C(8000000) / p_sys->fmt.i_bitrate;
> + date_Set( &p_sys->pts, pts );
> + break;
Same comment as with truncation
--
Francois Cartegnie
VideoLAN - VLC Developer
More information about the vlc-devel
mailing list