diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-11-24 14:01:23 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-11-24 14:01:50 +0100 |
commit | 7a19a8fb696f700bee96c983b825f80f3b3a82f6 (patch) | |
tree | e9f813bfdd73e784aa32cccfbf599e8ea9e29c66 /tools | |
parent | 96398cc12332bd0bd8acf921bfa310ed12146efd (diff) | |
parent | 6f26f14f134e753d6168591f30815b1c08c1498b (diff) | |
download | ffmpeg-7a19a8fb696f700bee96c983b825f80f3b3a82f6.tar.gz |
Merge commit '6f26f14f134e753d6168591f30815b1c08c1498b'
* commit '6f26f14f134e753d6168591f30815b1c08c1498b':
sidxindex: Write mimeType=audio/mp4 for audio-only representations
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/sidxindex.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/sidxindex.c b/tools/sidxindex.c index 9e27f97e58..202d2f0d45 100644 --- a/tools/sidxindex.c +++ b/tools/sidxindex.c @@ -327,7 +327,7 @@ static int output_mpd(struct Tracks *tracks, const char *filename) for (i = 0; i < nb_tracks[set]; ) { struct Track *first_track = adaptation_sets[set][i]; int width = 0, height = 0, sample_rate = 0, channels = 0, bitrate = 0; - fprintf(out, "\t\t\t<Representation id=\"%d\" mimeType=\"video/mp4\" codecs=\"", i); + fprintf(out, "\t\t\t<Representation id=\"%d\" codecs=\"", i); for (j = i; j < nb_tracks[set]; j++) { struct Track *track = adaptation_sets[set][j]; if (strcmp(track->name, first_track->name)) @@ -345,7 +345,8 @@ static int output_mpd(struct Tracks *tracks, const char *filename) fprintf(out, ","); fprintf(out, "%s", track->codec_str); } - fprintf(out, "\" bandwidth=\"%d\"", bitrate); + fprintf(out, "\" mimeType=\"%s/mp4\" bandwidth=\"%d\"", + width ? "video" : "audio", bitrate); if (width > 0 && height > 0) fprintf(out, " width=\"%d\" height=\"%d\"", width, height); if (sample_rate > 0) |