diff options
author | 2015-12-02 14:38:47 +0100 | |
---|---|---|
committer | 2015-12-02 14:38:47 +0100 | |
commit | 344d44681efaf180e7bd2e523f2add547b451bec (patch) | |
tree | 8754baeaa6b2865bc7be1c5e00b207db7c191aac /video/out/vo_null.c | |
parent | 03d311823d2f96d057c7c6afc5dd888185c5ab3c (diff) |
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).
Diffstat (limited to 'video/out/vo_null.c')
0 files changed, 0 insertions, 0 deletions