59 "Unable to initialize hinting of stream %d\n", src_index);
85 for (i = 0; i < queue->
len; i++)
127 for (i = 0; i < queue->
len; ) {
138 memcpy(ptr, sample->
data, sample->
size);
163 const uint8_t *needle,
int n_pos,
int n_len,
164 int *match_h_offset_ptr,
int *match_n_offset_ptr,
168 for (h_pos = 0; h_pos < h_len; h_pos++) {
170 int match_h_pos, match_n_pos;
173 while (h_pos + match_len < h_len && n_pos + match_len < n_len &&
174 needle[n_pos + match_len] == haystack[h_pos + match_len])
183 while (match_n_pos > 0 && match_h_pos > 0 &&
184 needle[match_n_pos - 1] == haystack[match_h_pos - 1]) {
191 *match_h_offset_ptr = match_h_pos;
192 *match_n_offset_ptr = match_n_pos;
193 *match_len_ptr = match_len;
216 int *match_sample,
int *match_offset,
219 while (queue->
len > 0) {
227 sample->
size, pos, match_offset, match_len) == 0) {
231 sample->
offset = *match_offset + *match_len + 5;
237 if (sample->
offset < 10 && sample->
size > 20) {
262 for (; len < 14; len++)
270 int match_offset,
int match_len,
int *entries)
288 int match_sample, match_offset, match_len, pos;
290 &match_offset, &match_len) < 0)
295 output_match(out, match_sample, match_offset, match_len, entries);
318 int64_t count_pos, entries_pos;
319 int count = 0, entries;
327 uint32_t packet_len =
AV_RB32(data);
333 if (packet_len > size || packet_len <= 12)
335 if (data[1] >= 200 && data[1] <= 204) {
390 int track_index,
int sample,
391 uint8_t *sample_data,
int sample_size)
435 hint_pkt.
pts = hint_pkt.
dts;