From f25871d790b77dcce82c33343b87828a176f329b Mon Sep 17 00:00:00 2001 From: Limin Wang Date: Fri, 8 Oct 2021 22:08:12 +0800 Subject: [PATCH] avcodec/avs3_parser: Fix usage of init_get_bits() and use init_get_bits8() Signed-off-by: Limin Wang --- libavcodec/avs3_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/avs3_parser.c b/libavcodec/avs3_parser.c index 1a05ea042e..d04d96a03a 100644 --- a/libavcodec/avs3_parser.c +++ b/libavcodec/avs3_parser.c @@ -73,7 +73,7 @@ static void parse_avs3_nal_units(AVCodecParserContext *s, const uint8_t *buf, GetBitContext gb; int profile, ratecode; - init_get_bits(&gb, buf + 4, buf_size - 4); + init_get_bits8(&gb, buf + 4, buf_size - 4); s->key_frame = 1; s->pict_type = AV_PICTURE_TYPE_I;