[FFmpeg-devel] [PATCH] Document av_gcd()

Michael Niedermayer michaelni
Sat Feb 28 18:23:37 CET 2009


On Sat, Feb 28, 2009 at 04:53:08PM +0100, Stefano Sabatini wrote:
> Hi,
> as in subject, regards.
> -- 
> FFmpeg = Funny and Forgiving Multimedia Pitiful Elected Ghost

> Index: libavutil/mathematics.h
> ===================================================================
> --- libavutil/mathematics.h	(revision 17629)
> +++ libavutil/mathematics.h	(working copy)
> @@ -50,6 +50,9 @@
>      AV_ROUND_NEAR_INF = 5, ///< Round to nearest and halfway cases away from zero.
>  };
>  
> +/**
> + * Returns the greatest common divisor of a and b.
> + */
>  int64_t av_const av_gcd(int64_t a, int64_t b);
>  
>  /**

ok,also please add
"if either or both are <=0 then the behavior is undefined"

i dont want to have to maintain existing behavior in optimizations

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

> ... defining _GNU_SOURCE...
For the love of all that is holy, and some that is not, don't do that.
-- Luca & Mans
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090228/65925ee7/attachment.pgp>



More information about the ffmpeg-devel mailing list