mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/vf_libplacebo: suppress warning on older libplacebo
Move the declaration before the code.
This commit is contained in:
parent
3e6816514c
commit
d1b14b4f0b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue