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

Paul B Mahol onemda at gmail.com
Wed Jul 17 11:11:25 EEST 2019


On 7/17/19, Ulf Zibis <Ulf.Zibis at cosoco.de> wrote:
>
> Am 17.07.19 um 08:57 schrieb Song, Ruiling:
>> Why do you think FFSIGN(0.0) should return +1?
> Because anyone I ask including mathematicians, is the opinion that the
> sign of 0 is positive.
>
>> What issue do you meet?
>
> I wanted to use the macro in my code, but with the current behaviour it
> is worthless.

Use copysign(f), see relevant manual page for documentation of this function.
Also, you always can add own macro, in local to your developed filter.

>
> -Ulf
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list