Skip to content
Snippets Groups Projects
Commit 988aa5b0 authored by Alexandre Janniaux's avatar Alexandre Janniaux Committed by Hugo Beauzée-Luyssen
Browse files

codec: twolame: return VLC_EGENERIC

...instead of -VLC_EGENERIC, leading to an overflow.

../../modules/codec/twolame.c: In function ‘OpenEncoder’:
../../modules/codec/twolame.c:236:16: warning: integer overflow in expression ‘-2147483648’ of type ‘int’ results in ‘-2147483648’ [-Woverflow]
  236 |         return -VLC_EGENERIC;
      |                ^
parent 0357c443
No related branches found
No related tags found
1 merge request!729codec: twolame: return VLC_EGENERIC
Pipeline #146167 passed with stages
in 26 minutes and 58 seconds
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment