h264: Move start code search functions into separate source files.

This permits re-use with parsers for codecs which use similar start codes.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
Ben Avison
2014-07-21 16:25:48 +01:00
committed by Luca Barbato
parent eee813eec7
commit db7f1c7c5a
11 changed files with 121 additions and 38 deletions

View File

@@ -48,7 +48,7 @@ static int h264_find_frame_end(H264Context *h, const uint8_t *buf,
for (i = 0; i < buf_size; i++) {
if (state == 7) {
i += h->h264dsp.h264_find_start_code_candidate(buf + i, buf_size - i);
i += h->h264dsp.startcode_find_candidate(buf + i, buf_size - i);
if (i < buf_size)
state = 2;
} else if (state <= 2) {