[FFmpeg-devel] [PATCH 11/11] avfilter/yadif_common: fix mixed declaration and code
Marvin Scholz
epirat07 at gmail.com
Fri Jul 12 20:43:31 EEST 2024
Fix a "mixing declarations and code is incompatible with standards
before C99" warning.
---
libavfilter/vf_yadif_videotoolbox.m | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavfilter/vf_yadif_videotoolbox.m b/libavfilter/vf_yadif_videotoolbox.m
index eb7026395e..5cc7585f3f 100644
--- a/libavfilter/vf_yadif_videotoolbox.m
+++ b/libavfilter/vf_yadif_videotoolbox.m
@@ -205,6 +205,7 @@ static av_cold int do_init(AVFilterContext *ctx) API_AVAILABLE(macos(10.11), ios
YADIFVTContext *s = ctx->priv;
NSError *err = nil;
CVReturn ret;
+ dispatch_data_t libData;
s->mtlDevice = MTLCreateSystemDefaultDevice();
if (!s->mtlDevice) {
@@ -214,7 +215,7 @@ static av_cold int do_init(AVFilterContext *ctx) API_AVAILABLE(macos(10.11), ios
av_log(ctx, AV_LOG_INFO, "Using Metal device: %s\n", s->mtlDevice.name.UTF8String);
- dispatch_data_t libData = dispatch_data_create(
+ libData = dispatch_data_create(
ff_vf_yadif_videotoolbox_metallib_data,
ff_vf_yadif_videotoolbox_metallib_len,
nil,
--
2.39.3 (Apple Git-146)
More information about the ffmpeg-devel
mailing list