diff options
author | James Almer <jamrial@gmail.com> | 2023-04-12 14:18:50 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2023-05-04 18:15:00 -0300 |
commit | 599abc0f3a0c6a1d9746a3098cd444a45471a160 (patch) | |
tree | 651d3f6d2669c2b7f487cccb2e708a481d0213a9 /libavfilter/vf_weave.c | |
parent | 3675dd0e0c8892151441a02ed0c5dee72a111c81 (diff) | |
download | ffmpeg-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_weave.c')
-rw-r--r-- | libavfilter/vf_weave.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavfilter/vf_weave.c b/libavfilter/vf_weave.c index e738c9ba17..2e64d81f27 100644 --- a/libavfilter/vf_weave.c +++ b/libavfilter/vf_weave.c @@ -148,8 +148,12 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) FFMIN(s->planeheight[1], ff_filter_get_nb_threads(ctx))); out->pts = s->double_weave ? s->prev->pts : in->pts / 2; +#if FF_API_INTERLACED_FRAME +FF_DISABLE_DEPRECATION_WARNINGS out->interlaced_frame = 1; out->top_field_first = !s->first_field; +FF_ENABLE_DEPRECATION_WARNINGS +#endif out->flags |= AV_FRAME_FLAG_INTERLACED; if (s->first_field) out->flags &= ~AV_FRAME_FLAG_TOP_FIELD_FIRST; |