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
e5356ebf
Commit
e5356ebf
authored
Apr 26, 2012
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetics: indentation
parent
8916f1fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
utils.c
libavformat/utils.c
+10
-9
No files found.
libavformat/utils.c
View file @
e5356ebf
...
@@ -987,15 +987,16 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st,
...
@@ -987,15 +987,16 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st,
if
(
pkt
->
pts
!=
AV_NOPTS_VALUE
||
pkt
->
dts
!=
AV_NOPTS_VALUE
||
if
(
pkt
->
pts
!=
AV_NOPTS_VALUE
||
pkt
->
dts
!=
AV_NOPTS_VALUE
||
duration
)
{
duration
)
{
/* presentation is not delayed : PTS and DTS are the same */
/* presentation is not delayed : PTS and DTS are the same */
if
(
pkt
->
pts
==
AV_NOPTS_VALUE
)
if
(
pkt
->
pts
==
AV_NOPTS_VALUE
)
pkt
->
pts
=
pkt
->
dts
;
pkt
->
pts
=
pkt
->
dts
;
update_initial_timestamps
(
s
,
pkt
->
stream_index
,
pkt
->
pts
,
pkt
->
pts
);
update_initial_timestamps
(
s
,
pkt
->
stream_index
,
pkt
->
pts
,
if
(
pkt
->
pts
==
AV_NOPTS_VALUE
)
pkt
->
pts
);
pkt
->
pts
=
st
->
cur_dts
;
if
(
pkt
->
pts
==
AV_NOPTS_VALUE
)
pkt
->
dts
=
pkt
->
pts
;
pkt
->
pts
=
st
->
cur_dts
;
if
(
pkt
->
pts
!=
AV_NOPTS_VALUE
)
pkt
->
dts
=
pkt
->
pts
;
st
->
cur_dts
=
pkt
->
pts
+
duration
;
if
(
pkt
->
pts
!=
AV_NOPTS_VALUE
)
st
->
cur_dts
=
pkt
->
pts
+
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