mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-16 13:51:37 +08:00
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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user