diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-07-04 13:32:31 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-07-04 13:40:08 +0200 |
commit | 6d05039c7ecbdaf2613fcb02ef4643c0cd59bd58 (patch) | |
tree | f25a1f933fb9bebbcd75d2e49377c8656f731758 /libavcodec | |
parent | b237e6282ef592e88db0a0368162a8a4c914574c (diff) | |
download | ffmpeg-6d05039c7ecbdaf2613fcb02ef4643c0cd59bd58.tar.gz |
avcodec/sonic: Fix usage of init_get_bits() and use init_get_bits8()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/sonic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/sonic.c b/libavcodec/sonic.c index 9636c31f3b..7a9db36311 100644 --- a/libavcodec/sonic.c +++ b/libavcodec/sonic.c @@ -758,7 +758,7 @@ static av_cold int sonic_decode_init(AVCodecContext *avctx) return AVERROR_INVALIDDATA; } - init_get_bits(&gb, avctx->extradata, avctx->extradata_size); + init_get_bits8(&gb, avctx->extradata, avctx->extradata_size); version = get_bits(&gb, 2); if (version > 1) @@ -872,7 +872,7 @@ static int sonic_decode_frame(AVCodecContext *avctx, // av_log(NULL, AV_LOG_INFO, "buf_size: %d\n", buf_size); - init_get_bits(&gb, buf, buf_size*8); + init_get_bits8(&gb, buf, buf_size); intlist_read(&gb, s->predictor_k, s->num_taps, 0); |