]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/g723_1dec.c
avcodec/wmaprodec: Check if there is a stream
[ffmpeg] / libavcodec / g723_1dec.c
index d8bc3f97acfddcda0fdc06bae0969d29572ffc23..d1faf92c39f8acc732fc171394b6c5d91123e7f4 100644 (file)
@@ -1010,7 +1010,7 @@ static int g723_1_decode_frame(AVCodecContext *avctx, void *data,
             formant_postfilter(p, lpc, p->audio, out);
         } else { // if output is not postfiltered it should be scaled by 2
             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]);
         }
     }