60 "Unable to initialize hinting of stream %d\n", src_index);
86 for (i = 0; i < queue->
len; i++)
128 for (i = 0; i < queue->
len; ) {
139 memcpy(ptr, sample->
data, sample->
size);
164 const uint8_t *needle,
int n_pos,
int n_len,
165 int *match_h_offset_ptr,
int *match_n_offset_ptr,
169 for (h_pos = 0; h_pos < h_len; h_pos++) {
171 int match_h_pos, match_n_pos;
174 while (h_pos + match_len < h_len && n_pos + match_len < n_len &&
175 needle[n_pos + match_len] == haystack[h_pos + match_len])
184 while (match_n_pos > 0 && match_h_pos > 0 &&
185 needle[match_n_pos - 1] == haystack[match_h_pos - 1]) {
192 *match_h_offset_ptr = match_h_pos;
193 *match_n_offset_ptr = match_n_pos;
194 *match_len_ptr = match_len;
217 int *match_sample,
int *match_offset,
220 while (queue->
len > 0) {
228 sample->
size, pos, match_offset, match_len) == 0) {
232 sample->
offset = *match_offset + *match_len + 5;
238 if (sample->
offset < 10 && sample->
size > 20) {
263 for (; len < 14; len++)
271 int match_offset,
int match_len,
int *entries)
289 int match_sample, match_offset, match_len, pos;
291 &match_offset, &match_len) < 0)
296 output_match(out, match_sample, match_offset, match_len, entries);
319 int64_t count_pos, entries_pos;
320 int count = 0, entries;
328 uint32_t packet_len =
AV_RB32(data);
334 if (packet_len > size || packet_len <= 12)
391 int track_index,
int sample,
392 uint8_t *sample_data,
int sample_size)
436 hint_pkt.
pts = hint_pkt.
dts;