| 70 | } H264ParseContext; |
| 71 | |
| 72 | static 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 | |
| 82 | static int h264_find_frame_end(H264ParseContext *p, const uint8_t *buf, |
| 83 | int buf_size, void *logctx) |
no test coverage detected