export top_field_first & interlaced_frame
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 5 Dec 2003 00:19:46 +0000 (00:19 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 5 Dec 2003 00:19:46 +0000 (00:19 +0000)
Originally committed as revision 2564 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mpegvideo.c

index 5aec28d..ef682e4 100644 (file)
@@ -1151,6 +1151,8 @@ alloc:
             return -1;
 
         s->current_picture_ptr= (Picture*)pic;
+        s->current_picture_ptr->top_field_first= s->top_field_first; //FIXME use only the vars from current_pic
+        s->current_picture_ptr->interlaced_frame= !s->progressive_frame;
     }
 
     s->current_picture_ptr->pict_type= s->pict_type;