diff options
author | James Almer <jamrial@gmail.com> | 2020-02-17 12:16:07 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2020-02-17 12:16:07 -0300 |
commit | 55cbccbc2ca644410715c21c5e46ef6b174e2c98 (patch) | |
tree | ef9d34d1e7f2f8c80ce7e2e4cdd020469f6f709b | |
parent | 8578433d203cf3e2a902aebb61c8260e82c750d8 (diff) | |
download | ffmpeg-55cbccbc2ca644410715c21c5e46ef6b174e2c98.tar.gz |
avformat/dashenc: disable Resync elements when using DVB-DASH profile
Signed-off-by: James Almer <jamrial@gmail.com>
-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 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<Resync dT=\"%"PRId64"\" type=\"0\"/>\n", as->max_frag_duration); if (as->trick_idx >= 0) avio_printf(out, "\t\t\t<EssentialProperty id=\"%d\" schemeIdUri=\"http://dashif.org/guidelines/trickmode\" value=\"%d\"/>\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<UTCTiming schemeIdUri=\"urn:mpeg:dash:utc:http-xsdate:2014\" value=\"%s\"/>\n", c->utc_timing_url); avio_printf(out, "\t\t\t\t</ProducerReferenceTime>\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<Resync dT=\"%"PRId64"\" type=\"1\"/>\n", os->gop_size); output_segment_list(os, out, s, i, final); |