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
2987efc5
Commit
2987efc5
authored
Oct 04, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
twolame: "quality" is a float variable and not an integer !
parent
bfbf8a97
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
modules/codec/twolame.c
modules/codec/twolame.c
+5
-8
No files found.
modules/codec/twolame.c
View file @
2987efc5
...
@@ -177,16 +177,13 @@ static int OpenEncoder( vlc_object_t *p_this )
...
@@ -177,16 +177,13 @@ static int OpenEncoder( vlc_object_t *p_this )
twolame_set_in_samplerate
(
p_sys
->
p_twolame
,
p_enc
->
fmt_out
.
audio
.
i_rate
);
twolame_set_in_samplerate
(
p_sys
->
p_twolame
,
p_enc
->
fmt_out
.
audio
.
i_rate
);
twolame_set_out_samplerate
(
p_sys
->
p_twolame
,
p_enc
->
fmt_out
.
audio
.
i_rate
);
twolame_set_out_samplerate
(
p_sys
->
p_twolame
,
p_enc
->
fmt_out
.
audio
.
i_rate
);
var_Get
(
p_enc
,
ENC_CFG_PREFIX
"vbr"
,
&
val
);
if
(
var_GetBool
(
p_enc
,
ENC_CFG_PREFIX
"vbr"
)
)
if
(
val
.
b_bool
)
{
{
float
i_quality
;
float
f_quality
=
var_GetFloat
(
p_enc
,
ENC_CFG_PREFIX
"quality"
);
var_Get
(
p_enc
,
ENC_CFG_PREFIX
"quality"
,
&
val
);
if
(
f_quality
>
50
.
0
)
f_quality
=
50
.
0
;
i_quality
=
val
.
i_int
;
if
(
f_quality
<
0
.
0
)
f_quality
=
0
.
0
;
if
(
i_quality
>
50
.
0
)
i_quality
=
50
.
0
;
if
(
i_quality
<
0
.
0
)
i_quality
=
0
.
0
;
twolame_set_VBR
(
p_sys
->
p_twolame
,
1
);
twolame_set_VBR
(
p_sys
->
p_twolame
,
1
);
twolame_set_VBR_q
(
p_sys
->
p_twolame
,
i
_quality
);
twolame_set_VBR_q
(
p_sys
->
p_twolame
,
f
_quality
);
}
}
else
else
{
{
...
...
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