diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index eb95bcf679..45885ac781 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -818,7 +818,7 @@ static int write_adaptation_set(AVFormatContext *s, AVIOContext *out, int as_ind avio_printf(out, " lang=\"%s\"", lang->value); avio_printf(out, ">\n"); - if (!final && c->ldash && as->max_frag_duration) + if (!final && c->ldash && as->max_frag_duration && !(c->profile & MPD_PROFILE_DVB)) avio_printf(out, "\t\t\t\n", as->max_frag_duration); if (as->trick_idx >= 0) avio_printf(out, "\t\t\t\n", as->id, as->trick_idx); @@ -869,7 +869,7 @@ static int write_adaptation_set(AVFormatContext *s, AVIOContext *out, int as_ind avio_printf(out, "\t\t\t\t\t\n", c->utc_timing_url); avio_printf(out, "\t\t\t\t\n"); } - if (!final && c->ldash && os->gop_size && os->frag_type != FRAG_TYPE_NONE && + if (!final && c->ldash && os->gop_size && os->frag_type != FRAG_TYPE_NONE && !(c->profile & MPD_PROFILE_DVB) && (os->frag_type != FRAG_TYPE_DURATION || os->frag_duration != os->seg_duration)) avio_printf(out, "\t\t\t\t\n", os->gop_size); output_segment_list(os, out, s, i, final);