[FFmpeg-devel] [PATCH] avutil/softfloat: use abort() instead of av_assert0(0)

Michael Niedermayer michael at niedermayer.cc
Tue Nov 10 13:51:58 CET 2015


On Mon, Nov 09, 2015 at 11:17:52PM -0300, James Almer wrote:
> Fixes compilation of host tool aacps_fixed_tablegen.
> 
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
> See http://fate.ffmpeg.org/report.cgi?time=20151108011316&slot=x86_64-openbsd5.6-gcc4.2-conf2
> 
>  libavutil/softfloat.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavutil/softfloat.h b/libavutil/softfloat.h
> index 5b285e3..7488753 100644
> --- a/libavutil/softfloat.h
> +++ b/libavutil/softfloat.h
> @@ -180,7 +180,7 @@ static av_always_inline SoftFloat av_sqrt_sf(SoftFloat val)
>      if (val.mant == 0)
>          val.exp = MIN_EXP;
>      else if (val.mant < 0)
> -        av_assert0(0);
> +        abort();
>      else

LGTM

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many things microsoft did are stupid, but not doing something just because
microsoft did it is even more stupid. If everything ms did were stupid they
would be bankrupt already.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151110/7d214a37/attachment.sig>


More information about the ffmpeg-devel mailing list