diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-03-07 00:28:14 +0100 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-04-27 10:43:16 -0300 |
commit | e5af9203098a889f36b759652615046254d45102 (patch) | |
tree | 5b27c29186fc551d4d40669039fb49ab04224baf /libavcodec/vc1_parser.c | |
parent | e625ae609206e0550ff733965c6f5447579320aa (diff) |
avcodec: Move all AVCodecParser.split functions to remove_extradata_bsf
The remove_extradata bsf is the only user of these functions.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/vc1_parser.c')
-rw-r--r-- | libavcodec/vc1_parser.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/libavcodec/vc1_parser.c b/libavcodec/vc1_parser.c index 0f17d299e1..00896ddb09 100644 --- a/libavcodec/vc1_parser.c +++ b/libavcodec/vc1_parser.c @@ -256,24 +256,6 @@ static int vc1_parse(AVCodecParserContext *s, return next; } -static int vc1_split(AVCodecContext *avctx, - const uint8_t *buf, int buf_size) -{ - uint32_t state = -1; - int charged = 0; - const uint8_t *ptr = buf, *end = buf + buf_size; - - while (ptr < end) { - ptr = avpriv_find_start_code(ptr, end, &state); - if (state == VC1_CODE_SEQHDR || state == VC1_CODE_ENTRYPOINT) { - charged = 1; - } else if (charged && IS_MARKER(state)) - return ptr - 4 - buf; - } - - return 0; -} - static av_cold int vc1_parse_init(AVCodecParserContext *s) { VC1ParseContext *vpc = s->priv_data; @@ -293,5 +275,4 @@ const AVCodecParser ff_vc1_parser = { .parser_init = vc1_parse_init, .parser_parse = vc1_parse, .parser_close = ff_parse_close, - .split = vc1_split, }; |