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
9e611419
Commit
9e611419
authored
Aug 13, 2018
by
Steven Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/hls: support decryption AES128 fmp4 m3u8 list
Signed-off-by:
Steven Liu
<
lq@chinaffmpeg.org
>
parent
e2921578
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
hls.c
libavformat/hls.c
+21
-0
No files found.
libavformat/hls.c
View file @
9e611419
...
...
@@ -811,6 +811,27 @@ static int parse_playlist(HLSContext *c, const char *url,
ff_parse_key_value
(
ptr
,
(
ff_parse_key_val_cb
)
handle_init_section_args
,
&
info
);
cur_init_section
=
new_init_section
(
pls
,
&
info
,
url
);
cur_init_section
->
key_type
=
key_type
;
if
(
has_iv
)
{
memcpy
(
cur_init_section
->
iv
,
iv
,
sizeof
(
iv
));
}
else
{
int
seq
=
pls
->
start_seq_no
+
pls
->
n_segments
;
memset
(
cur_init_section
->
iv
,
0
,
sizeof
(
cur_init_section
->
iv
));
AV_WB32
(
cur_init_section
->
iv
+
12
,
seq
);
}
if
(
key_type
!=
KEY_NONE
)
{
ff_make_absolute_url
(
tmp_str
,
sizeof
(
tmp_str
),
url
,
key
);
cur_init_section
->
key
=
av_strdup
(
tmp_str
);
if
(
!
cur_init_section
->
key
)
{
av_free
(
cur_init_section
);
ret
=
AVERROR
(
ENOMEM
);
goto
fail
;
}
}
else
{
cur_init_section
->
key
=
NULL
;
}
}
else
if
(
av_strstart
(
line
,
"#EXT-X-ENDLIST"
,
&
ptr
))
{
if
(
pls
)
pls
->
finished
=
1
;
...
...
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