Cosmetics: Move ffv1 encoder initialisation code.

This commit is contained in:
Carl Eugen Hoyos 2012-07-10 14:21:29 +02:00
parent 71c689e83e
commit 08ed3e8bf4

View File

@ -918,10 +918,6 @@ static av_cold int encode_init(AVCodecContext *avctx)
s->ac= avctx->coder_type ? 2:0;
if(s->ac>1)
for(i=1; i<256; i++)
s->state_transition[i]=ver2_state[i];
s->plane_count=3;
switch(avctx->pix_fmt){
case PIX_FMT_YUV444P9:
@ -989,6 +985,10 @@ static av_cold int encode_init(AVCodecContext *avctx)
return AVERROR(EINVAL);
}
if(s->ac>1)
for(i=1; i<256; i++)
s->state_transition[i]=ver2_state[i];
for(i=0; i<256; i++){
s->quant_table_count=2;
if(s->bits_per_raw_sample <=8){