Lines Matching defs:sorted_segments
984 static int mxf_get_sorted_table_segments(MXFContext *mxf, int *nb_sorted_segments, MXFIndexTableSegment ***sorted_segments)
999 !(*sorted_segments = av_calloc(nb_segments, sizeof(**sorted_segments)))) {
1000 av_freep(sorted_segments);
1038 (*sorted_segments)[(*nb_sorted_segments)++] = unsorted_segments[best];
1258 MXFIndexTableSegment **sorted_segments = NULL;
1260 if ((ret = mxf_get_sorted_table_segments(mxf, &nb_sorted_segments, &sorted_segments)) ||
1268 if (i == 0 || sorted_segments[i-1]->index_sid != sorted_segments[i]->index_sid)
1270 else if (sorted_segments[i-1]->body_sid != sorted_segments[i]->body_sid) {
1287 if (i != 0 && sorted_segments[i-1]->index_sid != sorted_segments[i]->index_sid) {
1308 if (sorted_segments[i]->index_start_position)
1310 sorted_segments[i]->index_sid, sorted_segments[i]->index_start_position);
1312 memcpy(t->segments, &sorted_segments[i], t->nb_segments * sizeof(MXFIndexTableSegment*));
1313 t->index_sid = sorted_segments[i]->index_sid;
1314 t->body_sid = sorted_segments[i]->body_sid;
1343 av_free(sorted_segments);