You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/sonic: Fix usage of init_get_bits() and use init_get_bits8()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user