diff options
author | Steven Liu <lq@chinaffmpeg.org> | 2018-09-05 14:13:56 +0800 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2018-09-05 14:13:56 +0800 |
commit | f499679e17cc6c8dc4e1e4e906c325946e43ec92 (patch) | |
tree | 625d6f71b350013cf383a09cf059043dcf455077 | |
parent | fbd8746efabe441469eb410d2ffa6af64987ca80 (diff) | |
download | ffmpeg-f499679e17cc6c8dc4e1e4e906c325946e43ec92.tar.gz |
avformat/dashdec: refine mpd element of attribute name availabilityEndTime
Signed-off-by: Steven Liu <lq@onvideo.cn>
-rw-r--r-- | libavformat/dashdec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 0435f25412..ad7e7d6cdb 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -132,6 +132,7 @@ typedef struct DASHContext { uint64_t media_presentation_duration; uint64_t suggested_presentation_delay; uint64_t availability_start_time; + uint64_t availability_end_time; uint64_t publish_time; uint64_t minimum_update_period; uint64_t time_shift_buffer_depth; @@ -1191,6 +1192,8 @@ static int parse_manifest(AVFormatContext *s, const char *url, AVIOContext *in) if (!av_strcasecmp(attr->name, (const char *)"availabilityStartTime")) { c->availability_start_time = get_utc_date_time_insec(s, (const char *)val); + } else if (!av_strcasecmp(attr->name, (const char *)"availabilityEndTime")) { + c->availability_end_time = get_utc_date_time_insec(s, (const char *)val); } else if (!av_strcasecmp(attr->name, (const char *)"publishTime")) { c->publish_time = get_utc_date_time_insec(s, (const char *)val); } else if (!av_strcasecmp(attr->name, (const char *)"minimumUpdatePeriod")) { |