fixed interlaced encoding

Originally committed as revision 2590 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Fabrice Bellard 2003-12-10 16:49:20 +00:00
parent 7f9b37b08e
commit db9b1b5eae
1 changed files with 3 additions and 2 deletions

View File

@ -404,9 +404,10 @@ int MPV_common_init(MpegEncContext *s)
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;