diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2012-03-17 15:33:43 -0700 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2012-03-18 15:33:19 -0700 |
commit | 834c81f4c5b3130b50c7e09d088e99f68b2a54cf (patch) | |
tree | d019ab0939c1926469213a5e0ad0ae31c17b4ca4 /libavcodec/adpcm.c | |
parent | b3084e29e6878754285ce739c243136b75f55fad (diff) | |
download | ffmpeg-834c81f4c5b3130b50c7e09d088e99f68b2a54cf.tar.gz |
adpcm: convert adpcm_ct to bytestream2.
Diffstat (limited to 'libavcodec/adpcm.c')
-rw-r--r-- | libavcodec/adpcm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c index e0c2463da4..a76f3bb045 100644 --- a/libavcodec/adpcm.c +++ b/libavcodec/adpcm.c @@ -1090,8 +1090,8 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data, } break; case CODEC_ID_ADPCM_CT: - for (n = nb_samples >> (1 - st); n > 0; n--, src++) { - uint8_t v = *src; + for (n = nb_samples >> (1 - st); n > 0; n--) { + int v = bytestream2_get_byteu(&gb); *samples++ = adpcm_ct_expand_nibble(&c->status[0 ], v >> 4 ); *samples++ = adpcm_ct_expand_nibble(&c->status[st], v & 0x0F); } |