static void print_track_chunks(FILE *out, struct Tracks *tracks, int main,

                               const char *type)

{

    int i, j;

    struct Track *track = tracks->tracks[main];

    for (i = 0; i < track->chunks; i++) {

        for (j = main + 1; j < tracks->nb_tracks; j++) {

            if (tracks->tracks[j]->is_audio == track->is_audio &&

                track->offsets[i].duration != tracks->tracks[j]->offsets[i].duration)

                fprintf(stderr, "Mismatched duration of %s chunk %d in %s and %s\n",

                        type, i, track->name, tracks->tracks[j]->name);

        }

        fprintf(out, "\t\t<c n=\"%d\" d=\"%d\" />\n",

                i, track->offsets[i].duration);

    }

}

static void print_track_chunks(FILE *out, struct Tracks *tracks, int main,

                               const char *type)

{

    int i, j;

    struct Track *track = tracks->tracks[main];

    for (i = 0; i < track->chunks; i++) {

        for (j = main + 1; j < tracks->nb_tracks; j++) {

            if (tracks->tracks[j]->is_audio == track->is_audio &&

                track->offsets[i].duration != tracks->tracks[j]->offsets[i].duration)

                fprintf(stderr, "Mismatched duration of %s chunk %d in %s and %s\n",

                        type, i, track->name, tracks->tracks[j]->name);

        }

        fprintf(out, "\t\t<c n=\"%d\" d=\"%d\" />\n",

                i, track->offsets[i].duration);

    }

}

        fprintf(out, "\t\t<c n=\"%d\" d=\"%d\" />\n",
static void FUNC_0(FILE *VAR_0, struct Tracks *VAR_1, int VAR_2,

                               const char *VAR_3)

{

    int VAR_4, VAR_5;

    struct Track *VAR_6 = VAR_1->VAR_1[VAR_2];

    for (VAR_4 = 0; VAR_4 < VAR_6->chunks; VAR_4++) {

        for (VAR_5 = VAR_2 + 1; VAR_5 < VAR_1->nb_tracks; VAR_5++) {

            if (VAR_1->VAR_1[VAR_5]->is_audio == VAR_6->is_audio &&

                VAR_6->offsets[VAR_4].duration != VAR_1->VAR_1[VAR_5]->offsets[VAR_4].duration)

                fprintf(stderr, "Mismatched duration of %s chunk %d in %s and %s\n",

                        VAR_3, VAR_4, VAR_6->name, VAR_1->VAR_1[VAR_5]->name);

        }

        fprintf(VAR_0, "\t\t<c n=\"%d\" d=\"%d\" />\n",

                VAR_4, VAR_6->offsets[VAR_4].duration);

    }

}

static void FUNC_0(FILE *VAR_0, struct Tracks *VAR_1, int VAR_2,
const char *VAR_3)
{ int VAR_4, VAR_5; struct Track *VAR_6 = VAR_1->VAR_1[VAR_2]; for (VAR_4 = 0; VAR_4 < VAR_6->chunks; VAR_4++) { for (VAR_5 = VAR_2 + 1; VAR_5 < VAR_1->nb_tracks; VAR_5++) { if (VAR_1->VAR_1[VAR_5]->is_audio == VAR_6->is_audio &&
VAR_6->offsets[VAR_4].duration != VAR_1->VAR_1[VAR_5]->offsets[VAR_4].duration)
fprintf(stderr, "Mismatched duration of %s chunk %d in %s and %s\n",
VAR_3, VAR_4, VAR_6->name, VAR_1->VAR_1[VAR_5]->name); } fprintf(VAR_0, "\t\t<c n=\"%d\" d=\"%d\" />\n",
VAR_4, VAR_6->offsets[VAR_4].duration); } }