Skip to content

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;
      |                ^

Merge request reports