[FFmpeg-devel] [RFC] Monkey's Audio decoder

Reimar Döffinger Reimar.Doeffinger
Mon Sep 10 23:04:03 CEST 2007


Hello,
On Mon, Sep 10, 2007 at 10:09:54PM +0200, Vitor Sessak wrote:
[...]
> > /* Return 0 if x is zero, -1 if x is positive, 1 if x is negative */
> > #define SIGN(x) (x) ? (((x) > 0) ? -1 : 1) : 0
> 
> Maybe M_SIGN would be a better name, it looks like more to be -SIGN(x)...

Either way it can be simplified to
(x) ? -FFSIGN(x) : 0




More information about the ffmpeg-devel mailing list