aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_setparams.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2023-04-12 14:18:50 -0300
committerJames Almer <jamrial@gmail.com>2023-05-04 18:15:00 -0300
commit599abc0f3a0c6a1d9746a3098cd444a45471a160 (patch)
tree651d3f6d2669c2b7f487cccb2e708a481d0213a9 /libavfilter/vf_setparams.c
parent3675dd0e0c8892151441a02ed0c5dee72a111c81 (diff)
downloadffmpeg-599abc0f3a0c6a1d9746a3098cd444a45471a160.tar.gz
avutil/frame: deprecate interlaced_frame and top_field_first
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavfilter/vf_setparams.c')
-rw-r--r--libavfilter/vf_setparams.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavfilter/vf_setparams.c b/libavfilter/vf_setparams.c
index 0165a5aaa6..321a64a14e 100644
--- a/libavfilter/vf_setparams.c
+++ b/libavfilter/vf_setparams.c
@@ -127,11 +127,19 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
/* set field */
if (s->field_mode == MODE_PROG) {
+#if FF_API_INTERLACED_FRAME
+FF_DISABLE_DEPRECATION_WARNINGS
frame->interlaced_frame = 0;
+FF_ENABLE_DEPRECATION_WARNINGS
+#endif
frame->flags &= ~AV_FRAME_FLAG_INTERLACED;
} else if (s->field_mode != MODE_AUTO) {
+#if FF_API_INTERLACED_FRAME
+FF_DISABLE_DEPRECATION_WARNINGS
frame->interlaced_frame = 1;
frame->top_field_first = s->field_mode;
+FF_ENABLE_DEPRECATION_WARNINGS
+#endif
frame->flags |= AV_FRAME_FLAG_INTERLACED;
if (s->field_mode)
frame->flags |= AV_FRAME_FLAG_TOP_FIELD_FIRST;