diff options
author | Niklas Haas <git@haasn.dev> | 2024-03-25 16:07:23 +0100 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2024-03-27 19:11:27 +0100 |
commit | b89ee2653919c14193f646ba03b2bf1d13c9aa2d (patch) | |
tree | a05a1eee31398658b88c110911db43695cc2f3e0 /libavcodec/internal.h | |
parent | 189c32f53659b8f9dc402765905fc12a321ab1ac (diff) | |
download | ffmpeg-b89ee2653919c14193f646ba03b2bf1d13c9aa2d.tar.gz |
avfilter: properly reduce YUV colorspace format lists
Doing this with REDUCE_FORMATS() instead of swap_color_*() is not only
shorter, but more importantly comes with the benefit of being done
inside a loop, allowing us to correctly propagate complex graphs
involving multiple conversion filters (e.g. -vf scale,zscale).
The latter family of swapping functions is only used to settle the
best *remaining* entry if no exact match was found, and as such was
never the correct solution to YUV colorspaces, which only care about
exact matches.
Diffstat (limited to 'libavcodec/internal.h')
0 files changed, 0 insertions, 0 deletions