[vlc-devel] [vlc-commits] demux: avformat: don't set pcr on tracks on seek
Jean-Baptiste Kempf
jb at videolan.org
Thu Jan 4 14:22:01 CET 2018
Hello François,
You mean #19401, right?
On Wed, 3 Jan 2018, at 19:50, Francois Cartegnie wrote:
> vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Jan
> 2 18:01:41 2018 +0100| [28adaf711f9a0b201077d2b62be2739a8d5e1a8e] |
> committer: Francois Cartegnie
>
> demux: avformat: don't set pcr on tracks on seek
>
> no guarantee track will start beyond that point.
>
> breaks hacks based pcr <> dts.
> refs #19317
>
> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=28adaf711f9a0b201077d2b62be2739a8d5e1a8e
> ---
>
> modules/demux/avformat/demux.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
> index 2c4d01325f..65d4278ccd 100644
> --- a/modules/demux/avformat/demux.c
> +++ b/modules/demux/avformat/demux.c
> @@ -908,7 +908,7 @@ static void ResetTime( demux_t *p_demux, int64_t i_time )
>
> p_sys->i_pcr = i_time;
> for( unsigned i = 0; i < p_sys->ic->nb_streams; i++ )
> - p_sys->tracks[i].i_pcr = i_time;
> + p_sys->tracks[i].i_pcr = VLC_TS_INVALID;
>
> if( i_time > VLC_TS_INVALID )
> {
>
> _______________________________________________
> vlc-commits mailing list
> vlc-commits at videolan.org
> https://mailman.videolan.org/listinfo/vlc-commits
--
Jean-Baptiste Kempf - President
+33 672 704 734
More information about the vlc-devel
mailing list