• Niklas Haas's avatar
    avfilter/vf_libplacebo: fix format query · 62dfa546
    Niklas Haas authored
    We need to construct the output format list separatedly from the input
    format list, because we need to adhere to two extra requirements:
    
    1. Big-endian output formats are always unsupported (runtime error)
    2. Combining 'vulkan' with an explicit out_format that is not supported
       by the vulkan frame allocation code is illegal and will crash (abort)
    
    As a free side benefit, this rewrite fixes a possible memory leak in the
    `fail` path that was present in the old code.
    Signed-off-by: 's avatarNiklas Haas <git@haasn.dev>
    62dfa546
vf_libplacebo.c 39.9 KB