diff options
author | Niklas Haas <git@haasn.dev> | 2023-10-21 16:51:51 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2023-12-31 13:36:22 -0800 |
commit | 2a942b4b3a0719edb67faca6b5325591568f9409 (patch) | |
tree | 1f7623b56ef48889f145802579387694e50c85f0 /libavfilter/aap_template.c | |
parent | 475a99628d98cc690e6a578fb835022d8faa48fb (diff) | |
download | ffmpeg-2a942b4b3a0719edb67faca6b5325591568f9409.tar.gz |
avfilter/vf_format: re-use AVFilterFormats for pix_fmt parsing
Rewrite the format parsing code to make it more easily generalizable. In
particular, `invert_formats` does not depend on the type of format list
passed to it, which allows me to re-use this helper in an upcoming
commit.
Slightly shortens the code, at the sole cost of doing several malloc
(ff_add_format) instead of a single malloc.
Diffstat (limited to 'libavfilter/aap_template.c')
0 files changed, 0 insertions, 0 deletions