aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_scale.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/vf_scale.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/vf_scale.c')
-rw-r--r--libavfilter/vf_scale.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c
index 6b82763596..b0221e8538 100644
--- a/libavfilter/vf_scale.c
+++ b/libavfilter/vf_scale.c
@@ -884,7 +884,8 @@ scale:
(int64_t)in->sample_aspect_ratio.den * outlink->w * link->h,
INT_MAX);
- if (scale->interlaced>0 || (scale->interlaced<0 && in->interlaced_frame)) {
+ if (scale->interlaced>0 || (scale->interlaced<0 &&
+ (in->flags & AV_FRAME_FLAG_INTERLACED))) {
ret = scale_field(scale, out, in, 0);
if (ret >= 0)
ret = scale_field(scale, out, in, 1);