[FFmpeg-devel] [PATCH v1] Bug #8027 - Wrong result for FFSIGN(0)

Hendrik Leppkes h.leppkes at gmail.com
Fri Jul 19 00:44:57 EEST 2019


On Thu, Jul 18, 2019 at 9:17 PM Ulf Zibis <Ulf.Zibis at cosoco.de> wrote:
>
>
> Am 17.07.19 um 10:12 schrieb Hendrik Leppkes:
> > ..., the macro was defined the way it is, and changing it now has a
> > chance of breaking
> > random places that rely on the current behavior.
>
> OK, that would be risky.
>
> Maybe we could add another macro FFSGN. Then maintainers of individual
> code parts could check the usage over the time.
>
> #define FFSGN(a) ((a) > 0 ? 1 : (a) < 0 ? -1 : 0)
>

Unless something inside FFmpeg needs such a behavior, that is unlikely.

- Hendrik


More information about the ffmpeg-devel mailing list