aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorMarvin Scholz <epirat07@gmail.com>2024-07-12 19:30:32 +0200
committerMarvin Scholz <epirat07@gmail.com>2024-09-26 00:34:36 +0200
commit10b3edbe24c403973b7910054f104eeef5909707 (patch)
tree0246a298dcb32372643df454a9c4297cd43f0d0c /libavfilter
parent799503f4bb8318733aeaf2e707ad4df8e8e0da96 (diff)
downloadffmpeg-10b3edbe24c403973b7910054f104eeef5909707.tar.gz
avfilter/vf_coreimage: silence AVFrame deprecation warnings
Deprecation warning need to be disabled here as we set deprecated fields.
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_coreimage.m8
1 files changed, 6 insertions, 2 deletions
diff --git a/libavfilter/vf_coreimage.m b/libavfilter/vf_coreimage.m
index a342f83475..b660d4373a 100644
--- a/libavfilter/vf_coreimage.m
+++ b/libavfilter/vf_coreimage.m
@@ -297,14 +297,18 @@ static int request_frame(AVFilterLink *link)
frame->pts = ctx->pts;
frame->duration = 1;
+ frame->flags |= AV_FRAME_FLAG_KEY;
+ frame->flags &= ~AV_FRAME_FLAG_INTERLACED;
+
+FF_DISABLE_DEPRECATION_WARNINGS
#if FF_API_FRAME_KEY
frame->key_frame = 1;
#endif
- frame->flags |= AV_FRAME_FLAG_KEY;
#if FF_API_INTERLACED_FRAME
frame->interlaced_frame = 0;
#endif
- frame->flags &= ~AV_FRAME_FLAG_INTERLACED;
+FF_ENABLE_DEPRECATION_WARNINGS
+
frame->pict_type = AV_PICTURE_TYPE_I;
frame->sample_aspect_ratio = ctx->sar;