0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00
mpv/video/decode
wm4 344d44681e video: readd codec delay estimation
Approximately reverts commit 3ccac74d. This failed with some avi files,
which do pseudo-VFR by sending packets with empty frames (or repeat
frames, depending on point of view). Specifically, these packets are not
0 bytes, so they don't get skipped by libavformat, as with the usual VFR
avi hack. Instead, the packet contains a VOP with vop_coded=0, so
libavcodec will just return no frame. We could probably distinguish such
skipped frames and delayed frames by explicitly measuring the codec
delay by counting how long it takes to get the very first frame (and
then treat skips as explicit drops), but we may as well simply reinstate
the old code.

To appease to at least one semi-broken case, do not enable this logic on
the RPI, as the FFmpeg MMAL wrapper has arbitrary buffering (and MMAL
itself is asynchronous).
2015-12-02 14:38:47 +01:00
..
dec_video.c video: readd codec delay estimation 2015-12-02 14:38:47 +01:00
dec_video.h video: increase avi pts buffer size 2015-11-06 17:06:32 +01:00
dxva2.c dxva2: reject 10 bit HEVC 2015-11-23 12:38:06 +01:00
lavc.h vd_lavc: be more careful with flushing the decoder 2015-11-10 16:06:42 +01:00
rpi.c rpi: add support for codecs other than h264 2015-11-05 17:24:35 +01:00
vaapi.c vaapi: remove dependency on X11 2015-09-27 21:33:15 +02:00
vd_lavc.c video: readd codec delay estimation 2015-12-02 14:38:47 +01:00
vd.h video: readd codec delay estimation 2015-12-02 14:38:47 +01:00
vdpau.c vdpau: fix uninit when init fails 2015-11-01 23:03:02 +01:00
videotoolbox.c videotoolbox: make decoder format customizable 2015-11-17 21:21:19 +01:00