Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
bbc85f4b
Commit
bbc85f4b
authored
Oct 05, 2011
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Used the nearest available frame rate in avcodec encoder.
It fixes #1965.
parent
eb71a005
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
modules/codec/avcodec/encoder.c
modules/codec/avcodec/encoder.c
+11
-0
No files found.
modules/codec/avcodec/encoder.c
View file @
bbc85f4b
...
@@ -402,6 +402,17 @@ int OpenEncoder( vlc_object_t *p_this )
...
@@ -402,6 +402,17 @@ int OpenEncoder( vlc_object_t *p_this )
p_context
->
time_base
.
num
=
p_enc
->
fmt_in
.
video
.
i_frame_rate_base
;
p_context
->
time_base
.
num
=
p_enc
->
fmt_in
.
video
.
i_frame_rate_base
;
p_context
->
time_base
.
den
=
p_enc
->
fmt_in
.
video
.
i_frame_rate
;
p_context
->
time_base
.
den
=
p_enc
->
fmt_in
.
video
.
i_frame_rate
;
if
(
p_codec
->
supported_framerates
)
{
AVRational
target
=
{
.
num
=
p_enc
->
fmt_in
.
video
.
i_frame_rate
,
.
den
=
p_enc
->
fmt_in
.
video
.
i_frame_rate_base
,
};
int
idx
=
av_find_nearest_q_idx
(
target
,
p_codec
->
supported_framerates
);
p_context
->
time_base
.
num
=
p_codec
->
supported_framerates
[
idx
].
den
;
p_context
->
time_base
.
den
=
p_codec
->
supported_framerates
[
idx
].
num
;
}
/* Defaults from ffmpeg.c */
/* Defaults from ffmpeg.c */
p_context
->
qblur
=
0
.
5
;
p_context
->
qblur
=
0
.
5
;
...
...
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