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
55cbccbc
Commit
55cbccbc
authored
Feb 17, 2020
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/dashenc: disable Resync elements when using DVB-DASH profile
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
8578433d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dashenc.c
libavformat/dashenc.c
+2
-2
No files found.
libavformat/dashenc.c
View file @
55cbccbc
...
...
@@ -818,7 +818,7 @@ static int write_adaptation_set(AVFormatContext *s, AVIOContext *out, int as_ind
avio_printf
(
out
,
" lang=
\"
%s
\"
"
,
lang
->
value
);
avio_printf
(
out
,
">
\n
"
);
if
(
!
final
&&
c
->
ldash
&&
as
->
max_frag_duration
)
if
(
!
final
&&
c
->
ldash
&&
as
->
max_frag_duration
&&
!
(
c
->
profile
&
MPD_PROFILE_DVB
)
)
avio_printf
(
out
,
"
\t\t\t
<Resync dT=
\"
%"
PRId64
"
\"
type=
\"
0
\"
/>
\n
"
,
as
->
max_frag_duration
);
if
(
as
->
trick_idx
>=
0
)
avio_printf
(
out
,
"
\t\t\t
<EssentialProperty id=
\"
%d
\"
schemeIdUri=
\"
http://dashif.org/guidelines/trickmode
\"
value=
\"
%d
\"
/>
\n
"
,
as
->
id
,
as
->
trick_idx
);
...
...
@@ -869,7 +869,7 @@ static int write_adaptation_set(AVFormatContext *s, AVIOContext *out, int as_ind
avio_printf
(
out
,
"
\t\t\t\t\t
<UTCTiming schemeIdUri=
\"
urn:mpeg:dash:utc:http-xsdate:2014
\"
value=
\"
%s
\"
/>
\n
"
,
c
->
utc_timing_url
);
avio_printf
(
out
,
"
\t\t\t\t
</ProducerReferenceTime>
\n
"
);
}
if
(
!
final
&&
c
->
ldash
&&
os
->
gop_size
&&
os
->
frag_type
!=
FRAG_TYPE_NONE
&&
if
(
!
final
&&
c
->
ldash
&&
os
->
gop_size
&&
os
->
frag_type
!=
FRAG_TYPE_NONE
&&
!
(
c
->
profile
&
MPD_PROFILE_DVB
)
&&
(
os
->
frag_type
!=
FRAG_TYPE_DURATION
||
os
->
frag_duration
!=
os
->
seg_duration
))
avio_printf
(
out
,
"
\t\t\t\t
<Resync dT=
\"
%"
PRId64
"
\"
type=
\"
1
\"
/>
\n
"
,
os
->
gop_size
);
output_segment_list
(
os
,
out
,
s
,
i
,
final
);
...
...
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