Commit 08ed3e8b authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Cosmetics: Move ffv1 encoder initialisation code.

parent 71c689e8
......@@ -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){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment