Backport https://github.com/mltframework/mlt/commit/ae83ceee72a0a39c063b02310f6ce928839712a2

Index: src/modules/avformat/filter_swscale.c
--- src/modules/avformat/filter_swscale.c.orig
+++ src/modules/avformat/filter_swscale.c
@@ -170,8 +170,15 @@ static int filter_scale(mlt_frame frame,
         avinframe->height = iheight;
         avinframe->format = avformat;
         avinframe->sample_aspect_ratio = av_d2q(mlt_frame_get_aspect_ratio(frame), 1024);
+#if LIBAVUTIL_VERSION_INT >= ((58 << 16) + (7 << 8) + 100)
+        if (!mlt_properties_get_int(properties, "progressive"))
+            avinframe->flags |= AV_FRAME_FLAG_INTERLACED;
+        if (mlt_properties_get_int(properties, "top_field_first"))
+            avinframe->flags |= AV_FRAME_FLAG_TOP_FIELD_FIRST;
+#else
         avinframe->interlaced_frame = !mlt_properties_get_int(properties, "progressive");
         avinframe->top_field_first = mlt_properties_get_int(properties, "top_field_first");
+#endif
         av_image_fill_arrays(avinframe->data,
                              avinframe->linesize,
                              *image,
