Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
034b72fc
Commit
034b72fc
authored
Jul 01, 2019
by
sfan5
Committed by
Steven Liu
Jul 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/dashdec: Fix reading values from SegmentTimeline inside Period
This was missed in commit
e752da54
.
parent
1476d82e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
dashdec.c
libavformat/dashdec.c
+4
-3
No files found.
libavformat/dashdec.c
View file @
034b72fc
...
...
@@ -842,7 +842,7 @@ static int parse_manifest_representation(AVFormatContext *s, const char *url,
xmlNodePtr
representation_segmenttemplate_node
=
NULL
;
xmlNodePtr
representation_baseurl_node
=
NULL
;
xmlNodePtr
representation_segmentlist_node
=
NULL
;
xmlNodePtr
segmentlists_tab
[
2
];
xmlNodePtr
segmentlists_tab
[
3
];
xmlNodePtr
fragment_timeline_node
=
NULL
;
xmlNodePtr
fragment_templates_tab
[
5
];
char
*
duration_val
=
NULL
;
...
...
@@ -1003,9 +1003,10 @@ static int parse_manifest_representation(AVFormatContext *s, const char *url,
xmlNodePtr
fragmenturl_node
=
NULL
;
segmentlists_tab
[
0
]
=
representation_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"
);
timescale_val
=
get_val_from_nodes_tab
(
segmentlists_tab
,
2
,
"timescale"
);
duration_val
=
get_val_from_nodes_tab
(
segmentlists_tab
,
3
,
"duration"
);
timescale_val
=
get_val_from_nodes_tab
(
segmentlists_tab
,
3
,
"timescale"
);
if
(
duration_val
)
{
rep
->
fragment_duration
=
(
int64_t
)
strtoll
(
duration_val
,
NULL
,
10
);
av_log
(
s
,
AV_LOG_TRACE
,
"rep->fragment_duration = [%"
PRId64
"]
\n
"
,
rep
->
fragment_duration
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment