[vlc-devel] [PATCH 1/2] demux: mkv: flag prerolled blocks
Denis Charmet
typx at dinauz.org
Thu Aug 4 16:48:18 CEST 2016
Hi,
On 2016-08-04 12:02, Francois Cartegnie wrote:
> helps avcodec not increasing late frames
> ---
> modules/demux/mkv/mkv.cpp | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/modules/demux/mkv/mkv.cpp b/modules/demux/mkv/mkv.cpp
> index 8fb66b6..0c90e4b 100644
> --- a/modules/demux/mkv/mkv.cpp
> +++ b/modules/demux/mkv/mkv.cpp
> @@ -677,6 +677,9 @@ void BlockDecode( demux_t *p_demux, KaxBlock
> *block, KaxSimpleBlock *simpleblock
> }
> }
>
> + if( p_block->i_dts < p_sys->i_start_pts )
I can't say that I'm a huge fan of comparison between pts and dts
especially since mkv dts are inferred using a fishy method and might be
VLC_TS_INVALID.
> + p_block->i_flags |= BLOCK_FLAG_PREROLL;
> +
> send_Block( p_demux, &track, p_block, i_number_frames,
> i_duration );
>
> /* use time stamp only for first block */
Regards,
--
Denis Charmet - TypX
Le mauvais esprit est un art de vivre
More information about the vlc-devel
mailing list