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
a6d0340c
Commit
a6d0340c
authored
Aug 30, 2011
by
Alex Converse
Committed by
Michael Niedermayer
Aug 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: Factorize combining auto vsync with format.
parent
ebf94f43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
ffmpeg.c
ffmpeg.c
+7
-3
No files found.
ffmpeg.c
View file @
a6d0340c
...
...
@@ -1136,7 +1136,7 @@ static void do_video_out(AVFormatContext *s,
AVFrame
*
in_picture
,
int
*
frame_size
,
float
quality
)
{
int
nb_frames
,
i
,
ret
;
int
nb_frames
,
i
,
ret
,
format_video_sync
;
AVFrame
*
final_picture
;
AVCodecContext
*
enc
,
*
dec
;
double
sync_ipts
;
...
...
@@ -1151,12 +1151,16 @@ static void do_video_out(AVFormatContext *s,
*
frame_size
=
0
;
if
(
video_sync_method
){
format_video_sync
=
video_sync_method
;
if
(
format_video_sync
<
0
)
format_video_sync
=
(
s
->
oformat
->
flags
&
AVFMT_VARIABLE_FPS
)
?
2
:
1
;
if
(
format_video_sync
)
{
double
vdelta
=
sync_ipts
-
ost
->
sync_opts
;
//FIXME set to 0.5 after we fix some dts/pts bugs like in avidec.c
if
(
vdelta
<
-
1
.
1
)
nb_frames
=
0
;
else
if
(
video_sync_method
==
2
||
(
video_sync_method
<
0
&&
(
s
->
oformat
->
flags
&
AVFMT_VARIABLE_FPS
)))
{
else
if
(
format_video_sync
==
2
)
{
if
(
vdelta
<=-
0
.
6
){
nb_frames
=
0
;
}
else
if
(
vdelta
>
0
.
6
)
...
...
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