---
 avconv.c |    9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/avconv.c b/avconv.c
index 8b723e8..978b994 100644
--- a/avconv.c
+++ b/avconv.c
@@ -1755,6 +1755,15 @@ static int transcode_init(void)
                 if (ost->forced_keyframes)
                     parse_forced_key_frames(ost->forced_keyframes, ost,
                                             ost->st->codec);
+
+                if (ost->top_field_first == 1)
+                    codec->field_order = AV_FIELD_TT;
+                else if (ost->top_field_first == 0)
+                    codec->field_order = AV_FIELD_BB;
+
+                if (codec->field_order != AV_FIELD_UNKNOWN &&
+                    codec->field_order != AV_FIELD_PROGRESSIVE)
+                    codec->flags |= CODEC_FLAG_INTERLACED_DCT | 
CODEC_FLAG_INTERLACED_ME;
                 break;
             case AVMEDIA_TYPE_SUBTITLE:
                 codec->time_base = (AVRational){1, 1000};
-- 
1.7.9.5

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to