Originally committed as revision 16814 to svn://svn.ffmpeg.org/ffmpeg/trunk
| ... | ... |
@@ -24,6 +24,7 @@ |
| 24 | 24 |
*/ |
| 25 | 25 |
|
| 26 | 26 |
#include <assert.h> |
| 27 |
+#include "avutil.h" |
|
| 27 | 28 |
#include "common.h" |
| 28 | 29 |
#include "mathematics.h" |
| 29 | 30 |
|
| ... | ... |
@@ -54,6 +55,12 @@ int64_t av_gcd(int64_t a, int64_t b){
|
| 54 | 54 |
else return a; |
| 55 | 55 |
} |
| 56 | 56 |
|
| 57 |
+#if LIBAVUTIL_VERSION_MAJOR < 50 |
|
| 58 |
+int64_t ff_gcd(int64_t a, int64_t b){
|
|
| 59 |
+ return av_gcd(a, b); |
|
| 60 |
+} |
|
| 61 |
+#endif |
|
| 62 |
+ |
|
| 57 | 63 |
int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd){
|
| 58 | 64 |
int64_t r=0; |
| 59 | 65 |
assert(c > 0); |