Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
ff3ddd93
Commit
ff3ddd93
authored
Mar 30, 2010
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x264: don't set default level to 5.1, but let libx264 pick level by default.
parent
e3d07bcd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/codec/x264.c
modules/codec/x264.c
+3
-3
No files found.
modules/codec/x264.c
View file @
ff3ddd93
...
...
@@ -466,7 +466,7 @@ vlc_module_begin ()
add_bool
(
SOUT_CFG_PREFIX
"psy"
,
true
,
NULL
,
PSY_TEXT
,
PSY_LONGTEXT
,
false
)
add_string
(
SOUT_CFG_PREFIX
"level"
,
"
5.1
"
,
NULL
,
LEVEL_TEXT
,
add_string
(
SOUT_CFG_PREFIX
"level"
,
"
0
"
,
NULL
,
LEVEL_TEXT
,
LEVEL_LONGTEXT
,
false
)
add_string
(
SOUT_CFG_PREFIX
"profile"
,
"high"
,
NULL
,
PROFILE_TEXT
,
...
...
@@ -841,10 +841,10 @@ static int Open ( vlc_object_t *p_this )
psz_val
=
var_GetString
(
p_enc
,
SOUT_CFG_PREFIX
"level"
);
if
(
psz_val
)
{
if
(
us_atof
(
psz_val
)
<
6
)
if
(
us_atof
(
psz_val
)
<
6
&&
us_atof
(
psz_val
)
>
0
)
p_sys
->
param
.
i_level_idc
=
(
int
)
(
10
*
us_atof
(
psz_val
)
+
.
5
);
else
else
if
(
atoi
(
psz_val
)
>
0
)
p_sys
->
param
.
i_level_idc
=
atoi
(
psz_val
);
free
(
psz_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