On Thu, May 06, 2021 at 10:34:50PM +0530, Vedaa wrote: > Hi, > > I have made the requisite changes.
[...] > +++ b/libavutil/tests/integer.h > @@ -0,0 +1,43 @@ > +/* > + * Copyright (c) 2004 Michael Niedermayer <michae...@gmx.at> > + * > + * This file is part of FFmpeg. > + * > + * FFmpeg is free software; you can redistribute it and/or > + * modify it under the terms of the GNU Lesser General Public > + * License as published by the Free Software Foundation; either > + * version 2.1 of the License, or (at your option) any later version. > + * > + * FFmpeg is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU > + * Lesser General Public License for more details. > + * > + * You should have received a copy of the GNU Lesser General Public > + * License along with FFmpeg; if not, write to the Free Software > + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 > USA > + */ > + > +#include <stdint.h> > + > +#include "libavutil/avassert.h" > +#include "libavutil/integer.h" > +#include "libavutil/intmath.h" > + > +static inline void TestInteger(int64_t a, int64_t b) > +{ > + AVInteger ai= av_int2i(a); > + AVInteger bi= av_int2i(b); > + > + av_assert0(av_i2int(ai) == a); > + av_assert0(av_i2int(bi) == b); > + av_assert0(av_i2int(av_add_i(ai,bi)) == a+b); > + av_assert0(av_i2int(av_sub_i(ai,bi)) == a-b); > + av_assert0(av_i2int(av_mul_i(ai,bi)) == a*b); > + av_assert0(av_i2int(av_shr_i(ai, 9)) == a>>9); > + av_assert0(av_i2int(av_shr_i(ai,-9)) == a<<9); > + av_assert0(av_i2int(av_shr_i(ai, 17)) == a>>17); > + av_assert0(av_i2int(av_shr_i(ai,-17)) == a<<17); > + av_assert0(av_log2_i(ai) == av_log2(a)); > + av_assert0(av_i2int(av_div_i(ai,bi)) == a/b); > +} missing standard inclusion guards, see other headers [...] > diff --git a/tools/target_int_fuzzer.c b/tools/target_int_fuzzer.c > new file mode 100644 > index 0000000000..811f410b1a > --- /dev/null > +++ b/tools/target_int_fuzzer.c > @@ -0,0 +1,35 @@ > +/* > + * Copyright (c) 2004 Michael Niedermayer <michae...@gmx.at> thats not correct, you are the author thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety -- Benjamin Franklin
signature.asc
Description: PGP signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".