• Philip Langdale's avatar
    CrystalHD: Add heuristics to try and distinguish h.264 PAFF variants. · 4ab57cff
    Philip Langdale authored
    As previously discussed, the CrystalHD hardware treats some PAFF
    clips different from others; even when input fields are always in
    separate packets, the hardware might return a single fieldpair for
    one clip and individual fields for another.
    
    Given the bogus flags set by the hardware, it is impossible to
    distinguish these two cases without knowing about the current
    picture and the next one. The hardware can usually provide the
    picture number of the next picture and when that is available,
    we can detect the two cases.
    
    When it is not available, we have to guess - and find out later
    if we were right or wrong.
    
    With this change, clips will play correctly unless they are PAFF
    where individual fields are returned *and* no next picture number
    is available. Generally speaking, the incorrect cases arise in
    the first couple of seconds of a clip as the delay calibration takes
    place. Once that's set, things work fine.
    4ab57cff
Name
Last commit
Last update
doc Loading commit data...
ffpresets Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswscale Loading commit data...
mt-work Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
Doxyfile Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
cmdutils.c Loading commit data...
cmdutils.h Loading commit data...
cmdutils_common_opts.h Loading commit data...
common.mak Loading commit data...
configure Loading commit data...
ffmpeg.c Loading commit data...
ffplay.c Loading commit data...
ffprobe.c Loading commit data...
ffserver.c Loading commit data...
ffserver.h Loading commit data...
subdir.mak Loading commit data...
version.sh Loading commit data...