This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
add a ff_gcd() function again, for compatibility with old libavcodec
Originally committed as revision 16814 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Aurelien Jacobs
16 years ago
parent
73c87551e5
commit
eded5c4309
1 changed files
with
7 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+7
-0
libavutil/mathematics.c
+ 7
- 0
libavutil/mathematics.c
View File
@@ -24,6 +24,7 @@
*/
*/
#include <assert.h>
#include <assert.h>
#include "avutil.h"
#include "common.h"
#include "common.h"
#include "mathematics.h"
#include "mathematics.h"
@@ -54,6 +55,12 @@ int64_t av_gcd(int64_t a, int64_t b){
else return a;
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 av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd){
int64_t r=0;
int64_t r=0;
assert(c > 0);
assert(c > 0);
Write
Preview
Loading…
Cancel
Save