Mercurial > libavcodec.hg
comparison mpegvideo_enc.c @ 9690:cc0380d2bbc3 libavcodec
Set progressive_sequence before MPV_common_init which cares about it when
setting mb_height for interlaced mpeg-2 encoding.
author | bcoudurier |
---|---|
date | Sat, 23 May 2009 01:22:43 +0000 |
parents | cbd09311872d |
children | 5d0f71ba8648 |
comparison
equal
deleted
inserted
replaced
9689:61b77bb5414a | 9690:cc0380d2bbc3 |
---|---|
647 | 647 |
648 avctx->has_b_frames= !s->low_delay; | 648 avctx->has_b_frames= !s->low_delay; |
649 | 649 |
650 s->encoding = 1; | 650 s->encoding = 1; |
651 | 651 |
652 s->progressive_frame= | |
653 s->progressive_sequence= !(avctx->flags & (CODEC_FLAG_INTERLACED_DCT|CODEC_FLAG_INTERLACED_ME|CODEC_FLAG_ALT_SCAN)); | |
654 | |
652 /* init */ | 655 /* init */ |
653 if (MPV_common_init(s) < 0) | 656 if (MPV_common_init(s) < 0) |
654 return -1; | 657 return -1; |
655 | 658 |
656 if(!s->dct_quantize) | 659 if(!s->dct_quantize) |
661 if(avctx->trellis) | 664 if(avctx->trellis) |
662 s->dct_quantize = dct_quantize_trellis_c; | 665 s->dct_quantize = dct_quantize_trellis_c; |
663 | 666 |
664 if((CONFIG_H263P_ENCODER || CONFIG_RV20_ENCODER) && s->modified_quant) | 667 if((CONFIG_H263P_ENCODER || CONFIG_RV20_ENCODER) && s->modified_quant) |
665 s->chroma_qscale_table= ff_h263_chroma_qscale_table; | 668 s->chroma_qscale_table= ff_h263_chroma_qscale_table; |
666 s->progressive_frame= | 669 |
667 s->progressive_sequence= !(avctx->flags & (CODEC_FLAG_INTERLACED_DCT|CODEC_FLAG_INTERLACED_ME|CODEC_FLAG_ALT_SCAN)); | |
668 s->quant_precision=5; | 670 s->quant_precision=5; |
669 | 671 |
670 ff_set_cmp(&s->dsp, s->dsp.ildct_cmp, s->avctx->ildct_cmp); | 672 ff_set_cmp(&s->dsp, s->dsp.ildct_cmp, s->avctx->ildct_cmp); |
671 ff_set_cmp(&s->dsp, s->dsp.frame_skip_cmp, s->avctx->frame_skip_cmp); | 673 ff_set_cmp(&s->dsp, s->dsp.frame_skip_cmp, s->avctx->frame_skip_cmp); |
672 | 674 |