changeset 1676:914c114360bd libavcodec

fixed interlaced encoding
author bellard
date Wed, 10 Dec 2003 16:49:20 +0000
parents 6ec50457bb9b
children c8b1b515d3b9
files mpegvideo.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo.c	Wed Dec 10 16:20:28 2003 +0000
+++ b/mpegvideo.c	Wed Dec 10 16:49:20 2003 +0000
@@ -404,9 +404,10 @@
     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->progressive_sequence= 
+    if (!s->encoding)
+        s->progressive_sequence= 1;
     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);
     yc_size = y_size + 2 * c_size;