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
e78016b0
Commit
e78016b0
authored
Sep 30, 2018
by
xiaofeng
Committed by
Michael Niedermayer
Sep 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: break loop when dts_heuristic check done
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
c0ee4e0a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
ffmpeg_opt.c
fftools/ffmpeg_opt.c
+3
-1
No files found.
fftools/ffmpeg_opt.c
View file @
e78016b0
...
@@ -1149,8 +1149,10 @@ static int open_input_file(OptionsContext *o, const char *filename)
...
@@ -1149,8 +1149,10 @@ static int open_input_file(OptionsContext *o, const char *filename)
int
dts_heuristic
=
0
;
int
dts_heuristic
=
0
;
for
(
i
=
0
;
i
<
ic
->
nb_streams
;
i
++
)
{
for
(
i
=
0
;
i
<
ic
->
nb_streams
;
i
++
)
{
const
AVCodecParameters
*
par
=
ic
->
streams
[
i
]
->
codecpar
;
const
AVCodecParameters
*
par
=
ic
->
streams
[
i
]
->
codecpar
;
if
(
par
->
video_delay
)
if
(
par
->
video_delay
)
{
dts_heuristic
=
1
;
dts_heuristic
=
1
;
break
;
}
}
}
if
(
dts_heuristic
)
{
if
(
dts_heuristic
)
{
seek_timestamp
-=
3
*
AV_TIME_BASE
/
23
;
seek_timestamp
-=
3
*
AV_TIME_BASE
/
23
;
...
...
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