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
d61ef05b
Commit
d61ef05b
authored
Mar 29, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: check pts like dts for being in the past.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
30ced7e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ffmpeg.c
ffmpeg.c
+2
-1
No files found.
ffmpeg.c
View file @
d61ef05b
...
...
@@ -3129,7 +3129,8 @@ static int transcode(OutputFile *output_files, int nb_output_files,
int64_t
pkt_pts
=
av_rescale_q
(
pkt
.
pts
,
ist
->
st
->
time_base
,
AV_TIME_BASE_Q
);
delta
=
pkt_pts
-
ist
->
next_dts
;
if
(
delta
<
-
1LL
*
dts_error_threshold
*
AV_TIME_BASE
||
(
delta
>
1LL
*
dts_error_threshold
*
AV_TIME_BASE
&&
ist
->
st
->
codec
->
codec_type
!=
AVMEDIA_TYPE_SUBTITLE
))
{
(
delta
>
1LL
*
dts_error_threshold
*
AV_TIME_BASE
&&
ist
->
st
->
codec
->
codec_type
!=
AVMEDIA_TYPE_SUBTITLE
)
||
pkt_pts
+
1
<
ist
->
pts
)
{
av_log
(
NULL
,
AV_LOG_WARNING
,
"PTS %"
PRId64
", next:%"
PRId64
" invalid droping st:%d
\n
"
,
pkt
.
pts
,
ist
->
next_dts
,
pkt
.
stream_index
);
pkt
.
pts
=
AV_NOPTS_VALUE
;
}
...
...
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