[FFmpeg-cvslog] adpcm: convert adpcm_ct to bytestream2.
Ronald S. Bultje
git at videolan.org
Tue Mar 20 00:16:52 CET 2012
ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Sat Mar 17 15:33:43 2012 -0700| [834c81f4c5b3130b50c7e09d088e99f68b2a54cf] | committer: Ronald S. Bultje
adpcm: convert adpcm_ct to bytestream2.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=834c81f4c5b3130b50c7e09d088e99f68b2a54cf
---
libavcodec/adpcm.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c
index e0c2463..a76f3bb 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);
}
More information about the ffmpeg-cvslog
mailing list