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
e134c203
Commit
e134c203
authored
Sep 05, 2018
by
Steven Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/dashdec: refine adaptionset attribute members
Signed-off-by:
Steven Liu
<
lq@onvideo.cn
>
parent
f499679e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
dashdec.c
libavformat/dashdec.c
+27
-0
No files found.
libavformat/dashdec.c
View file @
e134c203
...
...
@@ -122,6 +122,19 @@ struct representation {
typedef
struct
DASHContext
{
const
AVClass
*
class
;
char
*
base_url
;
char
*
adaptionset_contenttype_val
;
char
*
adaptionset_par_val
;
char
*
adaptionset_lang_val
;
char
*
adaptionset_minbw_val
;
char
*
adaptionset_maxbw_val
;
char
*
adaptionset_minwidth_val
;
char
*
adaptionset_maxwidth_val
;
char
*
adaptionset_minheight_val
;
char
*
adaptionset_maxheight_val
;
char
*
adaptionset_minframerate_val
;
char
*
adaptionset_maxframerate_val
;
char
*
adaptionset_segmentalignment_val
;
char
*
adaptionset_bitstreamswitching_val
;
int
n_videos
;
struct
representation
**
videos
;
...
...
@@ -1061,12 +1074,26 @@ static int parse_manifest_adaptationset(AVFormatContext *s, const char *url,
xmlNodePtr
period_segmentlist_node
)
{
int
ret
=
0
;
DASHContext
*
c
=
s
->
priv_data
;
xmlNodePtr
fragment_template_node
=
NULL
;
xmlNodePtr
content_component_node
=
NULL
;
xmlNodePtr
adaptionset_baseurl_node
=
NULL
;
xmlNodePtr
adaptionset_segmentlist_node
=
NULL
;
xmlNodePtr
adaptionset_supplementalproperty_node
=
NULL
;
xmlNodePtr
node
=
NULL
;
c
->
adaptionset_contenttype_val
=
xmlGetProp
(
adaptionset_node
,
"contentType"
);
c
->
adaptionset_par_val
=
xmlGetProp
(
adaptionset_node
,
"par"
);
c
->
adaptionset_lang_val
=
xmlGetProp
(
adaptionset_node
,
"lang"
);
c
->
adaptionset_minbw_val
=
xmlGetProp
(
adaptionset_node
,
"minBandwidth"
);
c
->
adaptionset_maxbw_val
=
xmlGetProp
(
adaptionset_node
,
"maxBandwidth"
);
c
->
adaptionset_minwidth_val
=
xmlGetProp
(
adaptionset_node
,
"minWidth"
);
c
->
adaptionset_maxwidth_val
=
xmlGetProp
(
adaptionset_node
,
"maxWidth"
);
c
->
adaptionset_minheight_val
=
xmlGetProp
(
adaptionset_node
,
"minHeight"
);
c
->
adaptionset_maxheight_val
=
xmlGetProp
(
adaptionset_node
,
"maxHeight"
);
c
->
adaptionset_minframerate_val
=
xmlGetProp
(
adaptionset_node
,
"minFrameRate"
);
c
->
adaptionset_maxframerate_val
=
xmlGetProp
(
adaptionset_node
,
"maxFrameRate"
);
c
->
adaptionset_segmentalignment_val
=
xmlGetProp
(
adaptionset_node
,
"segmentAlignment"
);
c
->
adaptionset_bitstreamswitching_val
=
xmlGetProp
(
adaptionset_node
,
"bitstreamSwitching"
);
node
=
xmlFirstElementChild
(
adaptionset_node
);
while
(
node
)
{
...
...
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