mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
bink: remove unneeded special case in the init code.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
574e87943e
commit
897d336984
@ -1246,17 +1246,10 @@ static av_cold void binkb_calc_quant(void)
|
|||||||
for (j = 0; j < 16; j++) {
|
for (j = 0; j < 16; j++) {
|
||||||
for (i = 0; i < 64; i++) {
|
for (i = 0; i < 64; i++) {
|
||||||
int k = inv_bink_scan[i];
|
int k = inv_bink_scan[i];
|
||||||
if (s[i] == C) {
|
|
||||||
binkb_intra_quant[j][k] = (1L << 12) * binkb_intra_seed[i] *
|
|
||||||
binkb_num[j]/binkb_den[j];
|
|
||||||
binkb_inter_quant[j][k] = (1L << 12) * binkb_inter_seed[i] *
|
|
||||||
binkb_num[j]/binkb_den[j];
|
|
||||||
} else {
|
|
||||||
binkb_intra_quant[j][k] = binkb_intra_seed[i] * (int64_t)s[i] *
|
binkb_intra_quant[j][k] = binkb_intra_seed[i] * (int64_t)s[i] *
|
||||||
binkb_num[j]/(binkb_den[j] * (C>>12));
|
binkb_num[j]/(binkb_den[j] * (C>>12));
|
||||||
binkb_inter_quant[j][k] = binkb_inter_seed[i] * (int64_t)s[i] *
|
binkb_inter_quant[j][k] = binkb_inter_seed[i] * (int64_t)s[i] *
|
||||||
binkb_num[j]/(binkb_den[j] * (C>>12));
|
binkb_num[j]/(binkb_den[j] * (C>>12));
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user