[FFmpeg-cvslog] avformat/dashenc: disable Resync elements when using DVB-DASH profile
James Almer
git at videolan.org
Mon Feb 17 17:22:35 EET 2020
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Mon Feb 17 12:16:07 2020 -0300| [55cbccbc2ca644410715c21c5e46ef6b174e2c98] | committer: James Almer
avformat/dashenc: disable Resync elements when using DVB-DASH profile
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=55cbccbc2ca644410715c21c5e46ef6b174e2c98
---
libavformat/dashenc.c | 4 ++--
1 file 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);
More information about the ffmpeg-cvslog
mailing list