mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/proresenc_kostya: remove redundant codebook assignments
This is already assigned at declaration.
This commit is contained in:
parent
e453efcfbc
commit
e940baa65b
|
@ -440,7 +440,6 @@ static void encode_dcs(PutBitContext *pb, int16_t *blocks,
|
||||||
prev_dc = (blocks[0] - 0x4000) / scale;
|
prev_dc = (blocks[0] - 0x4000) / scale;
|
||||||
encode_vlc_codeword(pb, FIRST_DC_CB, MAKE_CODE(prev_dc));
|
encode_vlc_codeword(pb, FIRST_DC_CB, MAKE_CODE(prev_dc));
|
||||||
sign = 0;
|
sign = 0;
|
||||||
codebook = 3;
|
|
||||||
blocks += 64;
|
blocks += 64;
|
||||||
|
|
||||||
for (i = 1; i < blocks_per_slice; i++, blocks += 64) {
|
for (i = 1; i < blocks_per_slice; i++, blocks += 64) {
|
||||||
|
@ -675,7 +674,6 @@ static int estimate_dcs(int *error, int16_t *blocks, int blocks_per_slice,
|
||||||
prev_dc = (blocks[0] - 0x4000) / scale;
|
prev_dc = (blocks[0] - 0x4000) / scale;
|
||||||
bits = estimate_vlc(FIRST_DC_CB, MAKE_CODE(prev_dc));
|
bits = estimate_vlc(FIRST_DC_CB, MAKE_CODE(prev_dc));
|
||||||
sign = 0;
|
sign = 0;
|
||||||
codebook = 3;
|
|
||||||
blocks += 64;
|
blocks += 64;
|
||||||
*error += FFABS(blocks[0] - 0x4000) % scale;
|
*error += FFABS(blocks[0] - 0x4000) % scale;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue