Drops pictures when decoding VFR video
Hi,
I'm playing VFR H.264 video, nominally 60 fps but occasionally with missing frames from the stream, so pts skipping a bit. (In other words, the stream is fully legal, but maybe unusual.) When playing this with VLC (2.2.2, Debian, Intel hardware decoding with VA-API), it often seems to drop frames around this discontinuity, with messages like (when run with vlc -v):
[00007f87d8060038] core video output warning: picture is too late to be displayed (missing 75 ms)
[00007f87d8060038] core video output warning: picture is too late to be displayed (missing 49 ms)
[00007f87d8060038] core video output warning: picture is too late to be displayed (missing 32 ms)
I'm including two sample files (beware, the second contains rather loud noise in its audio track; it's weird noise art, but great as a codec stress test :-) ). It's a bit nondeterministic, but the first one usually skips frames around the 15-second mark or so, while the second usually has problems around 35–36 seconds.
MPlayer plays the file without further ado; mpv has problems (much more than VLC).