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
44b0b85f
Commit
44b0b85f
authored
Aug 24, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: prefer user-forced input framerate when choosing output framerate
parent
db707302
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
avconv.c
avconv.c
+5
-1
No files found.
avconv.c
View file @
44b0b85f
...
@@ -1682,7 +1682,11 @@ static int transcode_init(void)
...
@@ -1682,7 +1682,11 @@ static int transcode_init(void)
(
video_sync_method
==
VSYNC_CFR
||
(
video_sync_method
==
VSYNC_CFR
||
(
video_sync_method
==
VSYNC_AUTO
&&
(
video_sync_method
==
VSYNC_AUTO
&&
!
(
oc
->
oformat
->
flags
&
(
AVFMT_NOTIMESTAMPS
|
AVFMT_VARIABLE_FPS
)))))
{
!
(
oc
->
oformat
->
flags
&
(
AVFMT_NOTIMESTAMPS
|
AVFMT_VARIABLE_FPS
)))))
{
ost
->
frame_rate
=
ist
->
st
->
avg_frame_rate
.
num
?
ist
->
st
->
avg_frame_rate
:
(
AVRational
){
25
,
1
};
ost
->
frame_rate
=
ist
->
framerate
.
num
?
ist
->
framerate
:
ist
->
st
->
avg_frame_rate
.
num
?
ist
->
st
->
avg_frame_rate
:
(
AVRational
){
25
,
1
};
if
(
ost
->
enc
&&
ost
->
enc
->
supported_framerates
&&
!
ost
->
force_fps
)
{
if
(
ost
->
enc
&&
ost
->
enc
->
supported_framerates
&&
!
ost
->
force_fps
)
{
int
idx
=
av_find_nearest_q_idx
(
ost
->
frame_rate
,
ost
->
enc
->
supported_framerates
);
int
idx
=
av_find_nearest_q_idx
(
ost
->
frame_rate
,
ost
->
enc
->
supported_framerates
);
ost
->
frame_rate
=
ost
->
enc
->
supported_framerates
[
idx
];
ost
->
frame_rate
=
ost
->
enc
->
supported_framerates
[
idx
];
...
...
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