MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / find_start_code

Function find_start_code

libavcodec/h264_parser.c:72–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70} H264ParseContext;
71
72static int find_start_code(const uint8_t *buf, int buf_size,
73 int buf_index, int next_avc)
74{
75 uint32_t state = -1;
76
77 buf_index = avpriv_find_start_code(buf + buf_index, buf + next_avc + 1, &state) - buf - 1;
78
79 return FFMIN(buf_index, buf_size);
80}
81
82static int h264_find_frame_end(H264ParseContext *p, const uint8_t *buf,
83 int buf_size, void *logctx)

Callers 1

parse_nal_unitsFunction · 0.85

Calls 1

avpriv_find_start_codeFunction · 0.85

Tested by

no test coverage detected