Lines Matching refs:sorted_segments
1512 …d_table_segments(MXFContext *mxf, int *nb_sorted_segments, MXFIndexTableSegment ***sorted_segments) in mxf_get_sorted_table_segments() argument
1527 !(*sorted_segments = av_calloc(nb_segments, sizeof(**sorted_segments)))) { in mxf_get_sorted_table_segments()
1528 av_freep(sorted_segments); in mxf_get_sorted_table_segments()
1545 av_freep(sorted_segments); in mxf_get_sorted_table_segments()
1585 (*sorted_segments)[(*nb_sorted_segments)++] = unsorted_segments[best]; in mxf_get_sorted_table_segments()
1833 MXFIndexTableSegment **sorted_segments = NULL; in mxf_compute_index_tables() local
1835 if ((ret = mxf_get_sorted_table_segments(mxf, &nb_sorted_segments, &sorted_segments)) || in mxf_compute_index_tables()
1843 if (i == 0 || sorted_segments[i-1]->index_sid != sorted_segments[i]->index_sid) in mxf_compute_index_tables()
1845 else if (sorted_segments[i-1]->body_sid != sorted_segments[i]->body_sid) { in mxf_compute_index_tables()
1862 if (i != 0 && sorted_segments[i-1]->index_sid != sorted_segments[i]->index_sid) { in mxf_compute_index_tables()
1884 if (sorted_segments[i]->index_start_position) in mxf_compute_index_tables()
1886 sorted_segments[i]->index_sid, sorted_segments[i]->index_start_position); in mxf_compute_index_tables()
1888 memcpy(t->segments, &sorted_segments[i], t->nb_segments * sizeof(MXFIndexTableSegment*)); in mxf_compute_index_tables()
1889 t->index_sid = sorted_segments[i]->index_sid; in mxf_compute_index_tables()
1890 t->body_sid = sorted_segments[i]->body_sid; in mxf_compute_index_tables()
1934 av_free(sorted_segments); in mxf_compute_index_tables()