diff options
author | James Almer <jamrial@gmail.com> | 2015-05-10 03:33:37 -0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2015-05-10 22:57:20 +0300 |
commit | ac1a1cb948fe29975424e367173b88db48792144 (patch) | |
tree | a72cb9761542e1b23823dfb452ae042940564291 | |
parent | 2fb02ecfd115a627f22df21720aa0bd4f6fcee8b (diff) | |
download | ffmpeg-ac1a1cb948fe29975424e367173b88db48792144.tar.gz |
dashenc: replace attribute id with contentType for the AdaptationSet element
id should be an integer, not a string. It is also optional, so use
contentType instead which is the proper attribute for these values.
This fixes an MPD validation error.
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r-- | libavformat/dashenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index fc5c823b03..f228b86000 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -503,7 +503,7 @@ static int write_manifest(AVFormatContext *s, int final) } if (c->has_video) { - avio_printf(out, "\t\t<AdaptationSet id=\"video\" segmentAlignment=\"true\" bitstreamSwitching=\"true\">\n"); + avio_printf(out, "\t\t<AdaptationSet contentType=\"video\" segmentAlignment=\"true\" bitstreamSwitching=\"true\">\n"); for (i = 0; i < s->nb_streams; i++) { AVStream *st = s->streams[i]; OutputStream *os = &c->streams[i]; @@ -516,7 +516,7 @@ static int write_manifest(AVFormatContext *s, int final) avio_printf(out, "\t\t</AdaptationSet>\n"); } if (c->has_audio) { - avio_printf(out, "\t\t<AdaptationSet id=\"audio\" segmentAlignment=\"true\" bitstreamSwitching=\"true\">\n"); + avio_printf(out, "\t\t<AdaptationSet contentType=\"audio\" segmentAlignment=\"true\" bitstreamSwitching=\"true\">\n"); for (i = 0; i < s->nb_streams; i++) { AVStream *st = s->streams[i]; OutputStream *os = &c->streams[i]; |