diff mbox series

[FFmpeg-devel,1/4] avcodec/audiotoolboxdec: Fix usage of init_get_bits() and use init_get_bits8()

Message ID 1633703633-18164-1-git-send-email-lance.lmwang@gmail.com
State Accepted
Commit ba03e4ed3365fa8d8940356384ef9f542173ab3b
Headers show
Series [FFmpeg-devel,1/4] avcodec/audiotoolboxdec: Fix usage of init_get_bits() and use init_get_bits8() | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Limin Wang Oct. 8, 2021, 2:33 p.m. UTC
From: Limin Wang <lance.lmwang@gmail.com>

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
---
 libavcodec/audiotoolboxdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavcodec/audiotoolboxdec.c b/libavcodec/audiotoolboxdec.c
index a222cde..9939fef 100644
--- a/libavcodec/audiotoolboxdec.c
+++ b/libavcodec/audiotoolboxdec.c
@@ -354,7 +354,7 @@  static av_cold int ffat_create_decoder(AVCodecContext *avctx,
                 avctx->codec_id == AV_CODEC_ID_EAC3)) {
         AC3HeaderInfo hdr;
         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)
             return AVERROR_INVALIDDATA;
         in_format.mSampleRate = hdr.sample_rate;