avcodec/avs3_parser: 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:
Limin Wang 2021-10-08 22:08:12 +08:00
parent ba03e4ed33
commit f25871d790

View File

@ -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;