mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 18:49:58 +00:00
ismindex: Change the duration field to int64_t
This reduces the risk for overflow in pathlogical cases. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
583a287f6f
commit
a4435f9235
@ -49,7 +49,7 @@ static int usage(const char *argv0, int ret)
|
||||
struct MoofOffset {
|
||||
int64_t time;
|
||||
int64_t offset;
|
||||
int duration;
|
||||
int64_t duration;
|
||||
};
|
||||
|
||||
struct Track {
|
||||
@ -425,7 +425,7 @@ static void print_track_chunks(FILE *out, struct Tracks *tracks, int main,
|
||||
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",
|
||||
fprintf(out, "\t\t<c n=\"%d\" d=\"%"PRId64"\" />\n",
|
||||
i, track->offsets[i].duration);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user