avfilter/vf_libplacebo: suppress warning on older libplacebo

Move the declaration before the code.
This commit is contained in:
Niklas Haas 2022-11-18 16:11:01 +01:00
parent 3e6816514c
commit d1b14b4f0b
1 changed files with 1 additions and 1 deletions

View File

@ -524,6 +524,7 @@ static int libplacebo_query_format(AVFilterContext *ctx)
RET(init_vulkan(ctx));
while ((desc = av_pix_fmt_desc_next(desc))) {
enum AVPixelFormat pixfmt = av_pix_fmt_desc_get_id(desc);
#if PL_API_VER < 232
// Older libplacebo can't handle >64-bit pixel formats, so safe-guard
@ -532,7 +533,6 @@ static int libplacebo_query_format(AVFilterContext *ctx)
continue;
#endif
enum AVPixelFormat pixfmt = av_pix_fmt_desc_get_id(desc);
if (pl_test_pixfmt(s->gpu, pixfmt)) {
if ((err = ff_add_format(&in_fmts, pixfmt)) < 0)
return err;