mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
lavfi/vf_libplacebo: test for renderable pixel formats
Requires a new upstream function to test not for *import* support on a given output pixel format, but also whether we can render to it. Fixes: https://github.com/haasn/libplacebo/issues/173
This commit is contained in:
parent
891167dee5
commit
138d3ac15d
@ -1141,6 +1141,11 @@ static int libplacebo_query_format(AVFilterContext *ctx)
|
||||
}
|
||||
}
|
||||
|
||||
#if PL_API_VER >= 293
|
||||
if (!pl_test_pixfmt_caps(s->gpu, pixfmt, PL_FMT_CAP_RENDERABLE))
|
||||
continue;
|
||||
#endif
|
||||
|
||||
RET(ff_add_format(&outfmts, pixfmt));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user