]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/rational.h
avfilter/vf_ssim: remove unnecessary check
[ffmpeg] / libavutil / rational.h
index 5c6b67b4e9f843ea93fc7ba305ff54a3062f4ea5..cbb08a0baf16d28c924826bd7e2af9ed18a46866 100644 (file)
@@ -207,6 +207,12 @@ int av_find_nearest_q_idx(AVRational q, const AVRational* q_list);
  */
 uint32_t av_q2intfloat(AVRational q);
 
+/**
+ * Return the best rational so that a and b are multiple of it.
+ * If the resulting denominator is larger than max_den, return def.
+ */
+AVRational av_gcd_q(AVRational a, AVRational b, int max_den, AVRational def);
+
 /**
  * @}
  */