mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-14 02:50:11 +01:00
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:
@@ -73,7 +73,7 @@ static void parse_avs3_nal_units(AVCodecParserContext *s, const uint8_t *buf,
|
|||||||
GetBitContext gb;
|
GetBitContext gb;
|
||||||
int profile, ratecode;
|
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->key_frame = 1;
|
||||||
s->pict_type = AV_PICTURE_TYPE_I;
|
s->pict_type = AV_PICTURE_TYPE_I;
|
||||||
|
|||||||
Reference in New Issue
Block a user