adpcm: use av_clip_intp2()

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
pull/133/head
James Almer 10 years ago
parent 979b77eec5
commit 778bac2788
  1. 2
      libavcodec/adpcm.c

@ -1498,7 +1498,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data,
prev = 0;
}
prev = av_clip((prev + 0x20) >> 6, -0x200000, 0x1fffff);
prev = av_clip_intp2((prev + 0x20) >> 6, 21);
byte = bytestream2_get_byteu(&gb);
if (!channel)

Loading…
Cancel
Save