mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
Rename all parameters and locals from 'index' to 'indx'.
This commit is contained in:
@@ -632,10 +632,10 @@ void write_metadata(const char *filename, FLAC__StreamMetadata *block, unsigned
|
||||
PPR; printf(" pre-emphasis: %s\n", track->pre_emphasis? "true":"false");
|
||||
PPR; printf(" number of index points: %u\n", track->num_indices);
|
||||
for(j = 0; j < track->num_indices; j++) {
|
||||
const FLAC__StreamMetadata_CueSheet_Index *index = track->indices+j;
|
||||
const FLAC__StreamMetadata_CueSheet_Index *indx = track->indices+j;
|
||||
PPR; printf(" index[%u]\n", j);
|
||||
PPR; printf(" offset: %" PRIu64 "\n", index->offset);
|
||||
PPR; printf(" number: %u\n", (unsigned)index->number);
|
||||
PPR; printf(" offset: %" PRIu64 "\n", indx->offset);
|
||||
PPR; printf(" number: %u\n", (unsigned)indx->number);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -155,14 +155,14 @@ FLAC__bool import_cs_from(const char *filename, FLAC__StreamMetadata **cuesheet,
|
||||
/* add seekpoints for each index point if required */
|
||||
if(0 != seekpoint_specification) {
|
||||
char spec[128];
|
||||
unsigned track, index;
|
||||
unsigned track, indx;
|
||||
const FLAC__StreamMetadata_CueSheet *cs = &(*cuesheet)->data.cue_sheet;
|
||||
if(0 == *seekpoint_specification)
|
||||
*seekpoint_specification = local_strdup("");
|
||||
for(track = 0; track < cs->num_tracks; track++) {
|
||||
const FLAC__StreamMetadata_CueSheet_Track *tr = cs->tracks+track;
|
||||
for(index = 0; index < tr->num_indices; index++) {
|
||||
flac_snprintf(spec, sizeof (spec), "%" PRIu64 ";", (tr->offset + tr->indices[index].offset));
|
||||
for(indx = 0; indx < tr->num_indices; indx++) {
|
||||
flac_snprintf(spec, sizeof (spec), "%" PRIu64 ";", (tr->offset + tr->indices[indx].offset));
|
||||
local_strcat(seekpoint_specification, spec);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user