avuienc: Use field_order to determine if a stream is interlaced.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Wed, 23 May 2012 14:36:53 +0000 (16:36 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Wed, 23 May 2012 14:36:53 +0000 (16:36 +0200)
libavcodec/avuienc.c

index 2dae5cc..53688a9 100644 (file)
@@ -43,7 +43,9 @@ static int avui_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
                              const AVFrame *pic, int *got_packet)
 {
     uint8_t *dst, *src = pic->data[0];
-    int i, j, skip, ret, size, interlaced = pic->interlaced_frame;
+    int i, j, skip, ret, size, interlaced;
+
+    interlaced = avctx->field_order > AV_FIELD_PROGRESSIVE;
 
     if (avctx->height == 486) {
         skip = 10;