[FFmpeg-cvslog] r16814 - trunk/libavutil/mathematics.c
aurel
subversion
Tue Jan 27 01:46:18 CET 2009
Author: aurel
Date: Tue Jan 27 01:46:18 2009
New Revision: 16814
Log:
add a ff_gcd() function again, for compatibility with old libavcodec
Modified:
trunk/libavutil/mathematics.c
Modified: trunk/libavutil/mathematics.c
==============================================================================
--- trunk/libavutil/mathematics.c Tue Jan 27 01:23:27 2009 (r16813)
+++ trunk/libavutil/mathematics.c Tue Jan 27 01:46:18 2009 (r16814)
@@ -24,6 +24,7 @@
*/
#include <assert.h>
+#include "avutil.h"
#include "common.h"
#include "mathematics.h"
@@ -54,6 +55,12 @@ int64_t av_gcd(int64_t a, int64_t b){
else return a;
}
+#if LIBAVUTIL_VERSION_MAJOR < 50
+int64_t ff_gcd(int64_t a, int64_t b){
+ return av_gcd(a, b);
+}
+#endif
+
int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd){
int64_t r=0;
assert(c > 0);
More information about the ffmpeg-cvslog
mailing list