diff --git a/modules/codec/twolame.c b/modules/codec/twolame.c
index f1bcd5542417a073c73a6621de6aa8f993a7c218..d956d23e8538725e09ddffca0e5f401092f471db 100644
--- a/modules/codec/twolame.c
+++ b/modules/codec/twolame.c
@@ -233,7 +233,7 @@ static int OpenEncoder( vlc_object_t *p_this )
     if ( twolame_init_params( p_sys->p_twolame ) )
     {
         msg_Err( p_enc, "twolame initialization failed" );
-        return -VLC_EGENERIC;
+        return VLC_EGENERIC;
     }
 
     p_enc->pf_encode_audio = Encode;