diff options
author | mail@nodoa.me <mail@nodoa.me> | 2022-11-03 14:40:31 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2022-11-05 11:50:36 +0100 |
commit | e8850bc2a8590ac66346de7a6d4831d1778746d1 (patch) | |
tree | 199715e88965091b487256dcb13afc82ab2c7973 /libswscale/libswscale.v | |
parent | 5c2a29cf7239e78db7dfa27182144f68da88ca5c (diff) | |
download | ffmpeg-e8850bc2a8590ac66346de7a6d4831d1778746d1.tar.gz |
lavfi/vf_fieldmatch: keep fields as-is if not matched properly
Makes it possible to use deinterlacers which output one frame for each field as fallback if field
matching fails (combmatch=full).
Currently, the documented example with fallback on a post-deinterlacer will only work in case the
deinterlacer outputs one frame per first field (as yadif=mode=0). The reason for that is that
fieldmatch will attempt to match the second field regardless of whether it recognizes the end
result is still interlaced. This produces garbled output with for example mixed telecined 24fps and
60i content combined with a field-based deinterlaced such as yadif=mode=1.
This patch orders fieldmatch to revert to using the second field of the current frame in case the
end result is still interlaced and a post-deinterlacer is assumed to be used.
Signed-off-by: lovesyk <lovesyk@users.noreply.github.com>
Diffstat (limited to 'libswscale/libswscale.v')
0 files changed, 0 insertions, 0 deletions