aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/ffv1.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos2012-07-10 14:21:29 +0200
committerCarl Eugen Hoyos2012-07-10 14:32:54 +0200
commit08ed3e8bf45bfc22b57ce13c9b8e21018bc597f8 (patch)
tree6695516c508155ceafa666ad84e595bcddd58152 /libavcodec/ffv1.c
parent71c689e83ed39282b541dc8b41dab849ae0a65b5 (diff)
Cosmetics: Move ffv1 encoder initialisation code.
Diffstat (limited to 'libavcodec/ffv1.c')
-rw-r--r--libavcodec/ffv1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c
index 44ef911e65..5e71f83c28 100644
--- a/libavcodec/ffv1.c
+++ b/libavcodec/ffv1.c
@@ -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){