Browse Source

adpcm: use av_clip_intp2()

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
tags/n2.7
James Almer 11 years ago
parent
commit
778bac2788
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/adpcm.c

+ 1
- 1
libavcodec/adpcm.c View File

@@ -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