[FFmpeg-cvslog] avcodec/audiotoolboxdec: Fix usage of init_get_bits() and use init_get_bits8()

Limin Wang git at videolan.org
Wed Oct 13 15:29:39 EEST 2021


ffmpeg | branch: master | Limin Wang <lance.lmwang at gmail.com> | Fri Oct  8 22:00:13 2021 +0800| [ba03e4ed3365fa8d8940356384ef9f542173ab3b] | committer: Limin Wang

avcodec/audiotoolboxdec: Fix usage of init_get_bits() and use init_get_bits8()

Signed-off-by: Limin Wang <lance.lmwang at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ba03e4ed3365fa8d8940356384ef9f542173ab3b
---

 libavcodec/audiotoolboxdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/audiotoolboxdec.c b/libavcodec/audiotoolboxdec.c
index a222cde62e..9939fef218 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;



More information about the ffmpeg-cvslog mailing list