diff options
author | Philip Langdale <philipl@overt.org> | 2011-03-16 22:27:51 -0700 |
---|---|---|
committer | Philip Langdale <philipl@overt.org> | 2011-03-26 15:55:47 -0700 |
commit | 4ab57cffba1d151898837a9a07a6a72f78716702 (patch) | |
tree | 7ed550a817c8b9960962fbb7d45145e8f1c921be /libavcodec/bmp.c | |
parent | e44073ca5e7143934ffa79d317dc65150db1637c (diff) | |
download | ffmpeg-4ab57cffba1d151898837a9a07a6a72f78716702.tar.gz |
CrystalHD: Add heuristics to try and distinguish h.264 PAFF variants.
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.
Diffstat (limited to 'libavcodec/bmp.c')
0 files changed, 0 insertions, 0 deletions