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
a0c71a57
Commit
a0c71a57
authored
Oct 07, 2015
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf: initialize cur_dts to AV_NOPTS_VALUE for muxing
The reasoning for setting it to zero only applies to demuxing.
parent
cc96018c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
utils.c
libavformat/utils.c
+7
-5
No files found.
libavformat/utils.c
View file @
a0c71a57
...
@@ -2549,16 +2549,18 @@ AVStream *avformat_new_stream(AVFormatContext *s, const AVCodec *c)
...
@@ -2549,16 +2549,18 @@ AVStream *avformat_new_stream(AVFormatContext *s, const AVCodec *c)
/* default pts setting is MPEG-like */
/* default pts setting is MPEG-like */
avpriv_set_pts_info
(
st
,
33
,
1
,
90000
);
avpriv_set_pts_info
(
st
,
33
,
1
,
90000
);
}
st
->
index
=
s
->
nb_streams
;
st
->
start_time
=
AV_NOPTS_VALUE
;
st
->
duration
=
AV_NOPTS_VALUE
;
/* we set the current DTS to 0 so that formats without any timestamps
/* we set the current DTS to 0 so that formats without any timestamps
* but durations get some timestamps, formats with some unknown
* but durations get some timestamps, formats with some unknown
* timestamps have their first few packets buffered and the
* timestamps have their first few packets buffered and the
* timestamps corrected before they are returned to the user */
* timestamps corrected before they are returned to the user */
st
->
cur_dts
=
0
;
st
->
cur_dts
=
0
;
}
else
{
st
->
cur_dts
=
AV_NOPTS_VALUE
;
}
st
->
index
=
s
->
nb_streams
;
st
->
start_time
=
AV_NOPTS_VALUE
;
st
->
duration
=
AV_NOPTS_VALUE
;
st
->
first_dts
=
AV_NOPTS_VALUE
;
st
->
first_dts
=
AV_NOPTS_VALUE
;
st
->
probe_packets
=
MAX_PROBE_PACKETS
;
st
->
probe_packets
=
MAX_PROBE_PACKETS
;
...
...
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