Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
d06b1ce6
Commit
d06b1ce6
authored
Jan 05, 2012
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x264.c: support infinite keyint option with -1
parent
c0236576
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
modules/codec/x264.c
modules/codec/x264.c
+4
-1
No files found.
modules/codec/x264.c
View file @
d06b1ce6
...
...
@@ -57,7 +57,7 @@ static void Close( vlc_object_t * );
#define KEYINT_TEXT N_("Maximum GOP size")
#define KEYINT_LONGTEXT N_( "Sets maximum interval between IDR-frames." \
"Larger values save bits, thus improving quality for a given bitrate at " \
"the cost of seeking precision." )
"the cost of seeking precision.
Use -1 for infinite.
" )
#define MIN_KEYINT_TEXT N_("Minimum GOP size")
#define MIN_KEYINT_LONGTEXT N_( "Sets minimum interval between IDR-frames. " \
...
...
@@ -924,6 +924,9 @@ static int Open ( vlc_object_t *p_this )
i_val
=
var_GetInteger
(
p_enc
,
SOUT_CFG_PREFIX
"keyint"
);
if
(
i_val
>
0
&&
i_val
!=
250
)
p_sys
->
param
.
i_keyint_max
=
i_val
;
#if X264_BUILD >= 102
if
(
i_val
==
-
1
)
p_sys
->
param
.
i_keyint_max
=
X264_KEYINT_MAX_INFINITE
;
#endif
i_val
=
var_GetInteger
(
p_enc
,
SOUT_CFG_PREFIX
"min-keyint"
);
if
(
i_val
>
0
&&
i_val
!=
25
)
p_sys
->
param
.
i_keyint_min
=
i_val
;
...
...
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