---
libavfilter/vf_interlace.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/libavfilter/vf_interlace.c b/libavfilter/vf_interlace.c
index a05ab03..919ec7c 100644
--- a/libavfilter/vf_interlace.c
+++ b/libavfilter/vf_interlace.c
@@ -181,7 +181,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
if (!s->cur || !s->next)
return 0;
- if (s->cur->interlaced_frame) {
+ if (s->cur->field_state & AV_FRAME_INTERLACED) {
av_log(ctx, AV_LOG_WARNING,
"video is already interlaced, adjusting framerate only\n");
out = av_frame_clone(s->cur);
@@ -199,9 +199,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
return AVERROR(ENOMEM);
av_frame_copy_props(out, s->cur);
- out->interlaced_frame = 1;
- out->top_field_first = tff;
- out->pts /= 2; // adjust pts to new framerate
+
+ out->field_state = tff ? AV_FRAME_INTERLACED_TFF : AV_FRAME_INTERLACED_BFF;
+ out->pts /= 2; // adjust pts to new framerate
/* copy upper/lower field from cur */
copy_picture_field(s->cur, out, inlink, tff ? FIELD_UPPER : FIELD_LOWER,
s->lowpass);
--
1.7.9.5
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel