Browse Source

avcodec/g723_1dec: Fix invalid shift

Fixes the FATE-tests g723_1-dec-1, g723_1-dec-2 and g723_1-dec-4.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n4.3
Andreas Rheinhardt Michael Niedermayer 6 years ago
parent
commit
54e1efda6d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/g723_1dec.c

+ 1
- 1
libavcodec/g723_1dec.c View File

@@ -1010,7 +1010,7 @@ static int g723_1_decode_frame(AVCodecContext *avctx, void *data,
formant_postfilter(p, lpc, p->audio, out); formant_postfilter(p, lpc, p->audio, out);
} else { // if output is not postfiltered it should be scaled by 2 } else { // if output is not postfiltered it should be scaled by 2
for (i = 0; i < FRAME_LEN; i++) for (i = 0; i < FRAME_LEN; i++)
out[i] = av_clip_int16(p->audio[LPC_ORDER + i] << 1);
out[i] = av_clip_int16(2 * p->audio[LPC_ORDER + i]);
} }
} }




Loading…
Cancel
Save