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
839d024f
Commit
839d024f
authored
Apr 26, 2020
by
Limin Wang
Committed by
Karthick J
Apr 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/dashenc: cosmetics
Signed-off-by:
Limin Wang
<
lance.lmwang@gmail.com
>
parent
1cc3851b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
dashenc.c
libavformat/dashenc.c
+14
-14
No files found.
libavformat/dashenc.c
View file @
839d024f
...
@@ -2149,22 +2149,22 @@ static int dash_write_packet(AVFormatContext *s, AVPacket *pkt)
...
@@ -2149,22 +2149,22 @@ static int dash_write_packet(AVFormatContext *s, AVPacket *pkt)
av_compare_ts
(
elapsed_duration
,
st
->
time_base
,
av_compare_ts
(
elapsed_duration
,
st
->
time_base
,
seg_end_duration
,
AV_TIME_BASE_Q
)
>=
0
)
{
seg_end_duration
,
AV_TIME_BASE_Q
)
>=
0
)
{
if
(
!
c
->
has_video
||
st
->
codecpar
->
codec_type
==
AVMEDIA_TYPE_VIDEO
)
{
if
(
!
c
->
has_video
||
st
->
codecpar
->
codec_type
==
AVMEDIA_TYPE_VIDEO
)
{
c
->
last_duration
=
av_rescale_q
(
pkt
->
pts
-
os
->
start_pts
,
c
->
last_duration
=
av_rescale_q
(
pkt
->
pts
-
os
->
start_pts
,
st
->
time_base
,
st
->
time_base
,
AV_TIME_BASE_Q
);
AV_TIME_BASE_Q
);
c
->
total_duration
=
av_rescale_q
(
pkt
->
pts
-
os
->
first_pts
,
c
->
total_duration
=
av_rescale_q
(
pkt
->
pts
-
os
->
first_pts
,
st
->
time_base
,
st
->
time_base
,
AV_TIME_BASE_Q
);
AV_TIME_BASE_Q
);
if
((
!
c
->
use_timeline
||
!
c
->
use_template
)
&&
os
->
last_duration
)
{
if
((
!
c
->
use_timeline
||
!
c
->
use_template
)
&&
os
->
last_duration
)
{
if
(
c
->
last_duration
<
os
->
last_duration
*
9
/
10
||
if
(
c
->
last_duration
<
os
->
last_duration
*
9
/
10
||
c
->
last_duration
>
os
->
last_duration
*
11
/
10
)
{
c
->
last_duration
>
os
->
last_duration
*
11
/
10
)
{
av_log
(
s
,
AV_LOG_WARNING
,
av_log
(
s
,
AV_LOG_WARNING
,
"Segment durations differ too much, enable use_timeline "
"Segment durations differ too much, enable use_timeline "
"and use_template, or keep a stricter keyframe interval
\n
"
);
"and use_template, or keep a stricter keyframe interval
\n
"
);
}
}
}
}
}
}
if
(
c
->
write_prft
&&
os
->
producer_reference_time
.
wallclock
&&
!
os
->
producer_reference_time_str
[
0
])
if
(
c
->
write_prft
&&
os
->
producer_reference_time
.
wallclock
&&
!
os
->
producer_reference_time_str
[
0
])
format_date
(
os
->
producer_reference_time_str
,
format_date
(
os
->
producer_reference_time_str
,
...
...
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