Moved scalinglist_process into init_encoder_control

This commit is contained in:
Laurent Fasnacht 2014-04-16 11:27:51 +02:00
parent 6e24ba0a5f
commit ec9d70f70c

View file

@ -159,6 +159,7 @@ encoder_control *init_encoder_control(config *cfg)
fclose(cqmfile);
}
}
scalinglist_process(&enc_c->scaling_list);
return enc_c;
@ -311,7 +312,6 @@ void encode_one_frame(encoder_control* encoder)
cabac_start(&cabac);
init_contexts(&cabac, encoder->QP, encoder->in.cur_pic->slicetype);
scalinglist_process(&encoder->scaling_list);
encode_slice_header(encoder);
bitstream_align(encoder->stream);