diff options
author | Niklas Haas <git@haasn.dev> | 2025-02-16 16:53:11 +0100 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2025-02-27 18:55:33 +0100 |
commit | 83c1b349648b7cabff7ea2f7ff77e08c16d5fa20 (patch) | |
tree | 281baaa4165ae8898f6beb1cb480cf821bd41c8d | |
parent | 123cccb62104e3cdbe992aa6c55643fcfbdf7993 (diff) | |
download | ffmpeg-83c1b349648b7cabff7ea2f7ff77e08c16d5fa20.tar.gz |
avfilter/libplacebo: strip interlaced flag when deinterlacing
-rw-r--r-- | libavfilter/vf_libplacebo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/vf_libplacebo.c b/libavfilter/vf_libplacebo.c index 70351131a8..d1a5ddb0d3 100644 --- a/libavfilter/vf_libplacebo.c +++ b/libavfilter/vf_libplacebo.c @@ -856,6 +856,8 @@ static int output_frame(AVFilterContext *ctx, int64_t pts) out->color_range = outlink->color_range; if (s->fps.num) out->duration = 1; + if (s->deinterlace) + out->flags &= ~(AV_FRAME_FLAG_INTERLACED | AV_FRAME_FLAG_TOP_FIELD_FIRST); if (s->apply_dovi && av_frame_get_side_data(ref, AV_FRAME_DATA_DOVI_METADATA)) { /* Output of dovi reshaping is always BT.2020+PQ, so infer the correct |