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
cdb5af79
Commit
cdb5af79
authored
Jul 08, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indent
Originally committed as revision 14133 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
7efeb73a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
utils.c
libavformat/utils.c
+2
-2
No files found.
libavformat/utils.c
View file @
cdb5af79
...
@@ -747,7 +747,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st,
...
@@ -747,7 +747,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st,
if
(
st
->
last_IP_duration
==
0
)
if
(
st
->
last_IP_duration
==
0
)
st
->
last_IP_duration
=
pkt
->
duration
;
st
->
last_IP_duration
=
pkt
->
duration
;
if
(
pkt
->
dts
!=
AV_NOPTS_VALUE
)
if
(
pkt
->
dts
!=
AV_NOPTS_VALUE
)
st
->
cur_dts
=
pkt
->
dts
+
st
->
last_IP_duration
;
st
->
cur_dts
=
pkt
->
dts
+
st
->
last_IP_duration
;
st
->
last_IP_duration
=
pkt
->
duration
;
st
->
last_IP_duration
=
pkt
->
duration
;
st
->
last_IP_pts
=
pkt
->
pts
;
st
->
last_IP_pts
=
pkt
->
pts
;
/* cannot compute PTS if not present (we can compute it only
/* cannot compute PTS if not present (we can compute it only
...
@@ -770,7 +770,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st,
...
@@ -770,7 +770,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st,
pkt
->
pts
=
st
->
cur_dts
;
pkt
->
pts
=
st
->
cur_dts
;
pkt
->
dts
=
pkt
->
pts
;
pkt
->
dts
=
pkt
->
pts
;
if
(
pkt
->
pts
!=
AV_NOPTS_VALUE
)
if
(
pkt
->
pts
!=
AV_NOPTS_VALUE
)
st
->
cur_dts
=
pkt
->
pts
+
pkt
->
duration
;
st
->
cur_dts
=
pkt
->
pts
+
pkt
->
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