Lines Matching refs:num_indices
149 FLAC__ASSERT(from->num_indices == 0);
153 FLAC__ASSERT(from->num_indices > 0);
154 if(0 == (x = (FLAC__StreamMetadata_CueSheet_Index*)safe_malloc_mul_2op_(from->num_indices, /*times*/sizeof(FLAC__StreamMetadata_CueSheet_Index))))
156 memcpy(x, from->indices, from->num_indices * sizeof(FLAC__StreamMetadata_CueSheet_Index));
336 object->length += object->data.cue_sheet.tracks[i].num_indices * (
344 static FLAC__StreamMetadata_CueSheet_Index *cuesheet_track_index_array_new_(unsigned num_indices)
346 FLAC__ASSERT(num_indices > 0);
348 return (FLAC__StreamMetadata_CueSheet_Index*)safe_calloc_(num_indices, sizeof(FLAC__StreamMetadata_CueSheet_Index));
366 FLAC__ASSERT(object_array[i].num_indices > 0);
406 FLAC__ASSERT((0 != src->indices && src->num_indices > 0) || (0 == src->indices && src->num_indices == 0));
815 if(block1->tracks[i].num_indices != block2->tracks[i].num_indices)
818 FLAC__ASSERT(block1->tracks[i].num_indices > 0);
819 for(j = 0; j < block1->tracks[i].num_indices; j++) {
1457 FLAC__ASSERT(object->num_indices > 0);
1478 FLAC__ASSERT(track->num_indices == 0);
1485 const size_t old_size = track->num_indices * sizeof(FLAC__StreamMetadata_CueSheet_Index);
1492 FLAC__ASSERT(track->num_indices > 0);
1503 memset(track->indices + track->num_indices, 0, new_size - old_size);
1506 track->num_indices = new_num_indices;
1519 FLAC__ASSERT(index_num <= object->data.cue_sheet.tracks[track_num].num_indices);
1523 if(!FLAC__metadata_object_cuesheet_track_resize_indices(object, track_num, track->num_indices+1))
1527 memmove(&track->indices[index_num+1], &track->indices[index_num], sizeof(FLAC__StreamMetadata_CueSheet_Index)*(track->num_indices-1-index_num));
1548 FLAC__ASSERT(index_num < object->data.cue_sheet.tracks[track_num].num_indices);
1553 memmove(&track->indices[index_num], &track->indices[index_num+1], sizeof(FLAC__StreamMetadata_CueSheet_Index)*(track->num_indices-index_num-1));
1555 FLAC__metadata_object_cuesheet_track_resize_indices(object, track_num, track->num_indices-1);
1631 cs->tracks[track_num].num_indices = 0;
1660 cs->tracks[cs->num_tracks-1].num_indices = 0;
1676 if (track >= (cs->num_tracks-1) || cs->tracks[track].num_indices < 1)
1680 else if (cs->tracks[track].num_indices < 2)