X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fparser.c;h=fc57246965ccd2f149ea1c05579f58583daaa381;hb=e5af9203098a889f36b759652615046254d45102;hp=f81a62d5920e2d8b4b39615417aa9db269a4d1be;hpb=e625ae609206e0550ff733965c6f5447579320aa;p=ffmpeg diff --git a/libavcodec/parser.c b/libavcodec/parser.c index f81a62d5920..fc57246965c 100644 --- a/libavcodec/parser.c +++ b/libavcodec/parser.c @@ -285,17 +285,3 @@ void ff_parse_close(AVCodecParserContext *s) av_freep(&pc->buffer); } - -int ff_mpeg4video_split(AVCodecContext *avctx, const uint8_t *buf, int buf_size) -{ - uint32_t state = -1; - const uint8_t *ptr = buf, *end = buf + buf_size; - - while (ptr < end) { - ptr = avpriv_find_start_code(ptr, end, &state); - if (state == 0x1B3 || state == 0x1B6) - return ptr - 4 - buf; - } - - return 0; -}