mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-04-11 03:32:39 +00:00
avcodec/audiotoolboxdec: Fix usage of init_get_bits() and use init_get_bits8()
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
parent
13141339c1
commit
ba03e4ed33
@ -354,7 +354,7 @@ static av_cold int ffat_create_decoder(AVCodecContext *avctx,
|
|||||||
avctx->codec_id == AV_CODEC_ID_EAC3)) {
|
avctx->codec_id == AV_CODEC_ID_EAC3)) {
|
||||||
AC3HeaderInfo hdr;
|
AC3HeaderInfo hdr;
|
||||||
GetBitContext gbc;
|
GetBitContext gbc;
|
||||||
init_get_bits(&gbc, pkt->data, pkt->size);
|
init_get_bits8(&gbc, pkt->data, pkt->size);
|
||||||
if (ff_ac3_parse_header(&gbc, &hdr) < 0)
|
if (ff_ac3_parse_header(&gbc, &hdr) < 0)
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
in_format.mSampleRate = hdr.sample_rate;
|
in_format.mSampleRate = hdr.sample_rate;
|
||||||
|
Loading…
Reference in New Issue
Block a user