Commit 9b9bf5ab authored by Paul B Mahol's avatar Paul B Mahol Committed by Michael Niedermayer

ffv1: cosmetics: indentation

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 8c48652f
...@@ -641,8 +641,8 @@ static void write_header(FFV1Context *f){ ...@@ -641,8 +641,8 @@ static void write_header(FFV1Context *f){
if(f->version>0) if(f->version>0)
put_symbol(c, state, f->avctx->bits_per_raw_sample, 0); put_symbol(c, state, f->avctx->bits_per_raw_sample, 0);
put_rac(c, state, 1); //chroma planes put_rac(c, state, 1); //chroma planes
put_symbol(c, state, f->chroma_h_shift, 0); put_symbol(c, state, f->chroma_h_shift, 0);
put_symbol(c, state, f->chroma_v_shift, 0); put_symbol(c, state, f->chroma_v_shift, 0);
put_rac(c, state, f->transparency); put_rac(c, state, f->transparency);
write_quant_tables(c, f->quant_table); write_quant_tables(c, f->quant_table);
...@@ -783,8 +783,8 @@ static int write_extra_header(FFV1Context *f){ ...@@ -783,8 +783,8 @@ static int write_extra_header(FFV1Context *f){
put_symbol(c, state, f->colorspace, 0); //YUV cs type put_symbol(c, state, f->colorspace, 0); //YUV cs type
put_symbol(c, state, f->avctx->bits_per_raw_sample, 0); put_symbol(c, state, f->avctx->bits_per_raw_sample, 0);
put_rac(c, state, 1); //chroma planes put_rac(c, state, 1); //chroma planes
put_symbol(c, state, f->chroma_h_shift, 0); put_symbol(c, state, f->chroma_h_shift, 0);
put_symbol(c, state, f->chroma_v_shift, 0); put_symbol(c, state, f->chroma_v_shift, 0);
put_rac(c, state, f->transparency); put_rac(c, state, f->transparency);
put_symbol(c, state, f->num_h_slices-1, 0); put_symbol(c, state, f->num_h_slices-1, 0);
put_symbol(c, state, f->num_v_slices-1, 0); put_symbol(c, state, f->num_v_slices-1, 0);
...@@ -1071,12 +1071,12 @@ static void clear_state(FFV1Context *f){ ...@@ -1071,12 +1071,12 @@ static void clear_state(FFV1Context *f){
}else }else
memset(p->state, 128, CONTEXT_SIZE*p->context_count); memset(p->state, 128, CONTEXT_SIZE*p->context_count);
}else{ }else{
for(j=0; j<p->context_count; j++){ for(j=0; j<p->context_count; j++){
p->vlc_state[j].drift= 0; p->vlc_state[j].drift= 0;
p->vlc_state[j].error_sum= 4; //FFMAX((RANGE + 32)/64, 2); p->vlc_state[j].error_sum= 4; //FFMAX((RANGE + 32)/64, 2);
p->vlc_state[j].bias= 0; p->vlc_state[j].bias= 0;
p->vlc_state[j].count= 1; p->vlc_state[j].count= 1;
} }
} }
} }
} }
......
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