summaryrefslogtreecommitdiff
path: root/libswresample/dither_template.c
diff options
context:
space:
mode:
Diffstat (limited to 'libswresample/dither_template.c')
-rw-r--r--libswresample/dither_template.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libswresample/dither_template.c b/libswresample/dither_template.c
index ecbe55c5dd..4af7312779 100644
--- a/libswresample/dither_template.c
+++ b/libswresample/dither_template.c
@@ -24,7 +24,8 @@ ERROR
#endif
void RENAME(swri_noise_shaping)(SwrContext *s, AudioData *dsts, const AudioData *srcs, const AudioData *noises, int count){
- int i, j, pos, ch;
+ int pos = s->dither.ns_pos;
+ int i, j, ch;
int taps = s->dither.ns_taps;
float S = s->dither.ns_scale;
float S_1 = s->dither.ns_scale_1;