summaryrefslogtreecommitdiff
path: root/libavfilter/buffersrc.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2023-04-12 11:38:46 -0300
committerJames Almer <jamrial@gmail.com>2023-05-04 18:14:11 -0300
commit36827ea783afbb39e5b75e8a982e316739009773 (patch)
tree745980f298dd29d5e56f5d0480e3d837cc8cc0e5 /libavfilter/buffersrc.c
parent2f561ba953e23887ddb25ab1b6739aab04ff9115 (diff)
downloadffmpeg-36827ea783afbb39e5b75e8a982e316739009773.tar.gz
avfilter: use the new AVFrame interlace flags in all filters
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavfilter/buffersrc.c')
-rw-r--r--libavfilter/buffersrc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c
index a1740da054..927b16ea06 100644
--- a/libavfilter/buffersrc.c
+++ b/libavfilter/buffersrc.c
@@ -247,6 +247,11 @@ FF_DISABLE_DEPRECATION_WARNINGS
FF_ENABLE_DEPRECATION_WARNINGS
#endif
+ if (copy->interlaced_frame)
+ copy->flags |= AV_FRAME_FLAG_INTERLACED;
+ if (copy->top_field_first)
+ copy->flags |= AV_FRAME_FLAG_TOP_FIELD_FIRST;
+
ret = ff_filter_frame(ctx->outputs[0], copy);
if (ret < 0)
return ret;