summaryrefslogtreecommitdiffstats
path: root/libavcodec/atrac3.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-06-06 13:20:17 +0200
committerDiego Biurrun <diego@biurrun.de>2017-02-07 18:27:21 +0100
commita25dac976a4478331e4db86d44c3db4456c93eff (patch)
treebe0638f8ebcb9e00dfdad10a73d0fc5ccee03293 /libavcodec/atrac3.c
parent71a49fe25f2e4468fbbadbebef8d073b1b3cc1a5 (diff)
downloadffmpeg-streaming-a25dac976a4478331e4db86d44c3db4456c93eff.zip
ffmpeg-streaming-a25dac976a4478331e4db86d44c3db4456c93eff.tar.gz
Use bitstream_init8() where appropriate
Diffstat (limited to 'libavcodec/atrac3.c')
-rw-r--r--libavcodec/atrac3.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c
index be32a0e..2a703ca 100644
--- a/libavcodec/atrac3.c
+++ b/libavcodec/atrac3.c
@@ -645,7 +645,7 @@ static int decode_frame(AVCodecContext *avctx, const uint8_t *databuf,
if (q->coding_mode == JOINT_STEREO) {
/* channel coupling mode */
/* decode Sound Unit 1 */
- bitstream_init(&q->bc, databuf, avctx->block_align * 8);
+ bitstream_init8(&q->bc, databuf, avctx->block_align);
ret = decode_channel_sound_unit(q, &q->bc, q->units, out_samples[0], 0,
JOINT_STEREO);
@@ -674,7 +674,7 @@ static int decode_frame(AVCodecContext *avctx, const uint8_t *databuf,
/* set the bitstream reader at the start of the second Sound Unit*/
- bitstream_init(&q->bc, ptr1, (avctx->block_align - i) * 8);
+ bitstream_init8(&q->bc, ptr1, avctx->block_align - i);
/* Fill the Weighting coeffs delay buffer */
memmove(q->weighting_delay, &q->weighting_delay[2],
@@ -705,9 +705,9 @@ static int decode_frame(AVCodecContext *avctx, const uint8_t *databuf,
/* Decode the channel sound units. */
for (i = 0; i < avctx->channels; i++) {
/* Set the bitstream reader at the start of a channel sound unit. */
- bitstream_init(&q->bc,
- databuf + i * avctx->block_align / avctx->channels,
- avctx->block_align * 8 / avctx->channels);
+ bitstream_init8(&q->bc,
+ databuf + i * avctx->block_align / avctx->channels,
+ avctx->block_align / avctx->channels);
ret = decode_channel_sound_unit(q, &q->bc, &q->units[i],
out_samples[i], i, q->coding_mode);
OpenPOWER on IntegriCloud