diff options
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 93048490fb..5642894ec9 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1316,6 +1316,11 @@ void av_frac_add(AVFrac *f, int64_t incr) f->num = num; } +int av_gcd(int a, int b){ + if(b) return av_gcd(b, a%b); + else return a; +} + /** * register a new image format * @param img_fmt Image format descriptor |