[vlc-commits] twolame: avoid double upconversion
Rémi Denis-Courmont
git at videolan.org
Wed Aug 13 22:23:08 CEST 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug 13 22:35:17 2014 +0300| [d827399d960603275c6d5ea1b1eee66dfe93c231] | committer: Rémi Denis-Courmont
twolame: avoid double upconversion
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d827399d960603275c6d5ea1b1eee66dfe93c231
---
modules/codec/twolame.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/codec/twolame.c b/modules/codec/twolame.c
index 4d2588a..4abc72b 100644
--- a/modules/codec/twolame.c
+++ b/modules/codec/twolame.c
@@ -177,8 +177,8 @@ static int OpenEncoder( vlc_object_t *p_this )
if( var_GetBool( p_enc, ENC_CFG_PREFIX "vbr" ) )
{
float f_quality = var_GetFloat( p_enc, ENC_CFG_PREFIX "quality" );
- if ( f_quality > 50.0 ) f_quality = 50.0;
- if ( f_quality < 0.0 ) f_quality = 0.0;
+ if ( f_quality > 50.f ) f_quality = 50.f;
+ if ( f_quality < 0.f ) f_quality = 0.f;
twolame_set_VBR( p_sys->p_twolame, 1 );
twolame_set_VBR_q( p_sys->p_twolame, f_quality );
}
More information about the vlc-commits
mailing list