[FFmpeg-cvslog] avfilter/libplacebo: strip interlaced flag when deinterlacing

Niklas Haas git at videolan.org
Thu Feb 27 20:02:27 EET 2025


ffmpeg | branch: master | Niklas Haas <git at haasn.dev> | Sun Feb 16 16:53:11 2025 +0100| [83c1b349648b7cabff7ea2f7ff77e08c16d5fa20] | committer: Niklas Haas

avfilter/libplacebo: strip interlaced flag when deinterlacing

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=83c1b349648b7cabff7ea2f7ff77e08c16d5fa20
---

 libavfilter/vf_libplacebo.c | 2 ++
 1 file changed, 2 insertions(+)

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



More information about the ffmpeg-cvslog mailing list