diff options
Diffstat (limited to 'apps/codecs/libcook/cook_fixpoint.h')
-rw-r--r-- | apps/codecs/libcook/cook_fixpoint.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/libcook/cook_fixpoint.h b/apps/codecs/libcook/cook_fixpoint.h index b8182bfcd0..83c054c527 100644 --- a/apps/codecs/libcook/cook_fixpoint.h +++ b/apps/codecs/libcook/cook_fixpoint.h | |||
@@ -110,7 +110,7 @@ static void scalar_dequant_math(COOKContext *q, int index, | |||
110 | for(i=0 ; i<SUBBAND_SIZE ; i++) { | 110 | for(i=0 ; i<SUBBAND_SIZE ; i++) { |
111 | f = table[subband_coef_index[i]]; | 111 | f = table[subband_coef_index[i]]; |
112 | /* noise coding if subband_coef_index[i] == 0 */ | 112 | /* noise coding if subband_coef_index[i] == 0 */ |
113 | if (((subband_coef_index[i] == 0) && av_lfg_get(&q->random_state) < 0x80000000) || | 113 | if (((subband_coef_index[i] == 0) && cook_random(q)) || |
114 | ((subband_coef_index[i] != 0) && subband_coef_sign[i])) | 114 | ((subband_coef_index[i] != 0) && subband_coef_sign[i])) |
115 | f = -f; | 115 | f = -f; |
116 | 116 | ||