From: James Almer Date: Sun, 10 May 2015 06:33:37 +0000 (-0300) Subject: dashenc: replace attribute id with contentType for the AdaptationSet element X-Git-Tag: n2.7~19^2~128 X-Git-Url: https://git.videolan.org/gitweb.cgi/ffmpeg.git/?p=ffmpeg.git;p=ffmpeg.git;a=commitdiff_plain;h=ac1a1cb948fe29975424e367173b88db48792144 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 Signed-off-by: Martin Storsjö --- 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\n"); + avio_printf(out, "\t\t\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\n"); } if (c->has_audio) { - avio_printf(out, "\t\t\n"); + avio_printf(out, "\t\t\n"); for (i = 0; i < s->nb_streams; i++) { AVStream *st = s->streams[i]; OutputStream *os = &c->streams[i];