mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
libavcodec/dv.c: Fix duplicate words
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
805fbbefb3
commit
e458fd6cf9
@ -551,7 +551,7 @@ static av_always_inline int dv_init_enc_block(EncBlockInfo* bi, uint8_t *data, i
|
|||||||
|
|
||||||
if (level + 15 > 30U) {
|
if (level + 15 > 30U) {
|
||||||
bi->sign[i] = (level >> 31) & 1;
|
bi->sign[i] = (level >> 31) & 1;
|
||||||
/* weight it and and shift down into range, adding for rounding */
|
/* weight it and shift down into range, adding for rounding */
|
||||||
/* the extra division by a factor of 2^4 reverses the 8x expansion of the DCT
|
/* the extra division by a factor of 2^4 reverses the 8x expansion of the DCT
|
||||||
AND the 2x doubling of the weights */
|
AND the 2x doubling of the weights */
|
||||||
level = (FFABS(level) * weight[i] + (1 << (dv_weight_bits+3))) >> (dv_weight_bits+4);
|
level = (FFABS(level) * weight[i] + (1 << (dv_weight_bits+3))) >> (dv_weight_bits+4);
|
||||||
|
Loading…
Reference in New Issue
Block a user