diff mpegvideo.c @ 1659:3075fc11a974 libavcodec

AVFrame.interlaced_frame fixes
author michael
date Fri, 05 Dec 2003 01:03:12 +0000
parents d4637a0eaab1
children 4c9fd29f1606
line wrap: on
line diff
--- a/mpegvideo.c	Fri Dec 05 00:19:46 2003 +0000
+++ b/mpegvideo.c	Fri Dec 05 01:03:12 2003 +0000
@@ -401,7 +401,9 @@
 
     s->y_dc_scale_table=
     s->c_dc_scale_table= ff_mpeg1_dc_scale_table;
-    s->chroma_qscale_table= ff_default_chroma_qscale_table;    
+    s->chroma_qscale_table= ff_default_chroma_qscale_table;
+    s->progressive_sequence= 
+    s->progressive_frame= 1;
     
     y_size = (2 * s->mb_width + 2) * (2 * s->mb_height + 2);
     c_size = (s->mb_width + 2) * (s->mb_height + 2);
@@ -1152,7 +1154,7 @@
 
         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->interlaced_frame= !s->progressive_frame && !s->progressive_sequence;
     }
 
     s->current_picture_ptr->pict_type= s->pict_type;