aboutsummaryrefslogtreecommitdiffstats
path: root/tools/sidxindex.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-03 04:51:40 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-03 04:51:45 +0100
commite566667d8fd03e6697d281a13f25907e422f85f1 (patch)
treeb0cbfb4f9276dca2d5499c20cb172d9c0fecbf34 /tools/sidxindex.c
parent3be67f33a5f2fd9c08d6f0b86a3196e865484f7b (diff)
parent5cf6bda6e2eae496e8eb2bb06c96852d59a58b8a (diff)
downloadffmpeg-e566667d8fd03e6697d281a13f25907e422f85f1.tar.gz
Merge commit '5cf6bda6e2eae496e8eb2bb06c96852d59a58b8a'
* commit '5cf6bda6e2eae496e8eb2bb06c96852d59a58b8a': sidxindex: Don't adjust the Period start time depending on the track start time Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'tools/sidxindex.c')
-rw-r--r--tools/sidxindex.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/tools/sidxindex.c b/tools/sidxindex.c
index 202d2f0d45..0dcdb478de 100644
--- a/tools/sidxindex.c
+++ b/tools/sidxindex.c
@@ -252,7 +252,6 @@ static int output_mpd(struct Tracks *tracks, const char *filename)
int nb_tracks_buf[2] = { 0 };
int *nb_tracks;
int set, nb_sets;
- int64_t latest_start = 0;
if (!tracks->multiple_tracks_per_file) {
adaptation_sets = adaptation_sets_buf;
@@ -299,17 +298,7 @@ static int output_mpd(struct Tracks *tracks, const char *filename)
fprintf(out, "\"\n");
fprintf(out, "\tminBufferTime=\"PT5S\">\n");
- for (i = 0; i < tracks->nb_tracks; i++) {
- int64_t start = av_rescale_rnd(tracks->tracks[i]->earliest_presentation,
- AV_TIME_BASE,
- tracks->tracks[i]->earliest_presentation_timescale,
- AV_ROUND_UP);
- latest_start = FFMAX(start, latest_start);
- }
- fprintf(out, "\t<Period start=\"");
- write_time(out, latest_start, 3, AV_ROUND_UP);
- fprintf(out, "\">\n");
-
+ fprintf(out, "\t<Period start=\"PT0.0S\">\n");
for (set = 0; set < nb_sets; set++) {
if (nb_tracks[set] == 0)