mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
avfilter/vf_libplacebo: fix output format selection
After commit c0b93, it's possible that `ff_vk_filter_config_input` never
gets called, leading to `s->vkctx.input_format` being left unset. This
broke the format auto-selection logic in `libplacebo_config_output`,
resulting in a default to yuv420p, instead of defaulting to the input
format as intended.
Fixes: c0b93c4f8b
This commit is contained in:
parent
d1b14b4f0b
commit
12b4ab5d4d
@ -551,9 +551,15 @@ fail:
|
||||
|
||||
static int libplacebo_config_input(AVFilterLink *inlink)
|
||||
{
|
||||
AVFilterContext *avctx = inlink->dst;
|
||||
LibplaceboContext *s = avctx->priv;
|
||||
|
||||
if (inlink->format == AV_PIX_FMT_VULKAN)
|
||||
return ff_vk_filter_config_input(inlink);
|
||||
|
||||
/* Forward this to the vkctx for format selection */
|
||||
s->vkctx.input_format = inlink->format;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user