mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 05:00:37 +00: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) {
|
||||
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
|
||||
AND the 2x doubling of the weights */
|
||||
level = (FFABS(level) * weight[i] + (1 << (dv_weight_bits+3))) >> (dv_weight_bits+4);
|
||||
|
Loading…
Reference in New Issue
Block a user