# HG changeset patch # User bellard # Date 1071074960 0 # Node ID 914c114360bdb30ce38aa082482161db856553ce # Parent 6ec50457bb9b9a4245264d8d3cd82d6f949830e8 fixed interlaced encoding diff -r 6ec50457bb9b -r 914c114360bd mpegvideo.c --- 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;