diff options
author | Diego Biurrun <diego@biurrun.de> | 2016-06-06 13:20:17 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2017-02-07 18:27:21 +0100 |
commit | a25dac976a4478331e4db86d44c3db4456c93eff (patch) | |
tree | be0638f8ebcb9e00dfdad10a73d0fc5ccee03293 /libavcodec/smacker.c | |
parent | 71a49fe25f2e4468fbbadbebef8d073b1b3cc1a5 (diff) | |
download | ffmpeg-a25dac976a4478331e4db86d44c3db4456c93eff.tar.gz |
Use bitstream_init8() where appropriate
Diffstat (limited to 'libavcodec/smacker.c')
-rw-r--r-- | libavcodec/smacker.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/smacker.c b/libavcodec/smacker.c index 027728e387..2abf7c1c5a 100644 --- a/libavcodec/smacker.c +++ b/libavcodec/smacker.c @@ -302,7 +302,7 @@ static int decode_header_trees(SmackVContext *smk) { full_size = AV_RL32(smk->avctx->extradata + 8); type_size = AV_RL32(smk->avctx->extradata + 12); - bitstream_init(&bc, smk->avctx->extradata + 16, (smk->avctx->extradata_size - 16) * 8); + bitstream_init8(&bc, smk->avctx->extradata + 16, smk->avctx->extradata_size - 16); if (!bitstream_read_bit(&bc)) { av_log(smk->avctx, AV_LOG_INFO, "Skipping MMAP tree\n"); @@ -417,7 +417,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, last_reset(smk->mclr_tbl, smk->mclr_last); last_reset(smk->full_tbl, smk->full_last); last_reset(smk->type_tbl, smk->type_last); - bitstream_init(&bc, avpkt->data + 769, (avpkt->size - 769) * 8); + bitstream_init8(&bc, avpkt->data + 769, avpkt->size - 769); blk = 0; bw = avctx->width >> 2; @@ -618,7 +618,7 @@ static int smka_decode_frame(AVCodecContext *avctx, void *data, unp_size = AV_RL32(buf); - bitstream_init(&bc, buf + 4, (buf_size - 4) * 8); + bitstream_init8(&bc, buf + 4, buf_size - 4); if (!bitstream_read_bit(&bc)) { av_log(avctx, AV_LOG_INFO, "Sound: no data\n"); |