mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-02 20:35:37 +02:00
avformat/dashdec: Fix reading values from SegmentTimeline inside Period
This was missed in commit e752da546463e693865d92a837fc0e8d2b28db2e.
This commit is contained in:
parent
1476d82e73
commit
034b72fc0b
@ -842,7 +842,7 @@ static int parse_manifest_representation(AVFormatContext *s, const char *url,
|
|||||||
xmlNodePtr representation_segmenttemplate_node = NULL;
|
xmlNodePtr representation_segmenttemplate_node = NULL;
|
||||||
xmlNodePtr representation_baseurl_node = NULL;
|
xmlNodePtr representation_baseurl_node = NULL;
|
||||||
xmlNodePtr representation_segmentlist_node = NULL;
|
xmlNodePtr representation_segmentlist_node = NULL;
|
||||||
xmlNodePtr segmentlists_tab[2];
|
xmlNodePtr segmentlists_tab[3];
|
||||||
xmlNodePtr fragment_timeline_node = NULL;
|
xmlNodePtr fragment_timeline_node = NULL;
|
||||||
xmlNodePtr fragment_templates_tab[5];
|
xmlNodePtr fragment_templates_tab[5];
|
||||||
char *duration_val = NULL;
|
char *duration_val = NULL;
|
||||||
@ -1003,9 +1003,10 @@ static int parse_manifest_representation(AVFormatContext *s, const char *url,
|
|||||||
xmlNodePtr fragmenturl_node = NULL;
|
xmlNodePtr fragmenturl_node = NULL;
|
||||||
segmentlists_tab[0] = representation_segmentlist_node;
|
segmentlists_tab[0] = representation_segmentlist_node;
|
||||||
segmentlists_tab[1] = adaptionset_segmentlist_node;
|
segmentlists_tab[1] = adaptionset_segmentlist_node;
|
||||||
|
segmentlists_tab[2] = period_segmentlist_node;
|
||||||
|
|
||||||
duration_val = get_val_from_nodes_tab(segmentlists_tab, 2, "duration");
|
duration_val = get_val_from_nodes_tab(segmentlists_tab, 3, "duration");
|
||||||
timescale_val = get_val_from_nodes_tab(segmentlists_tab, 2, "timescale");
|
timescale_val = get_val_from_nodes_tab(segmentlists_tab, 3, "timescale");
|
||||||
if (duration_val) {
|
if (duration_val) {
|
||||||
rep->fragment_duration = (int64_t) strtoll(duration_val, NULL, 10);
|
rep->fragment_duration = (int64_t) strtoll(duration_val, NULL, 10);
|
||||||
av_log(s, AV_LOG_TRACE, "rep->fragment_duration = [%"PRId64"]\n", rep->fragment_duration);
|
av_log(s, AV_LOG_TRACE, "rep->fragment_duration = [%"PRId64"]\n", rep->fragment_duration);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user