[vlc-devel] [vlc-commits] vout: fix use-after-free, wait on correct date

Rémi Denis-Courmont remi at remlab.net
Thu Nov 19 18:20:04 CET 2015


On Tuesday 17 November 2015 20:01:31 Thomas Guillem wrote:
> The issue is that frames can be 1-4 seconds late after a seek:
> "core video output warning: picture is too late to be displayed (missing
> 1350 ms)"

Previously the date was wrong. Now it´s correct and the core detects the late 
frame and drops it (correctly).

> I found out that it was only happening when using the vdpau_chroma
> filter.
> It's quite easy to reproduce on Desktop: seek from 1 sec to 0 sec
> repeatedly (with the Ctrl+arrow shortcut).
> 
> After a quick look at this module, I saw that it was re-ordering frame
> dates, see history struct.

It´s not reordering frames. It´s adding one frame delay for post-processing 
(as does the software deinterlacer).

As far as I can tell, the video output fails to flush its video filters, so 
you get a late frame after seek.

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list