From 3ae66c442a0dbb1e648ed8a042d67941f4d56d87 Mon Sep 17 00:00:00 2001 From: Martin Väth Date: Sun, 28 Aug 2016 07:02:38 +0200 Subject: Use int64_t in abs patch --- media-libs/avidemux-plugins/files/avidemux-plugins-abs.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'media-libs') diff --git a/media-libs/avidemux-plugins/files/avidemux-plugins-abs.patch b/media-libs/avidemux-plugins/files/avidemux-plugins-abs.patch index 3e5f22da..223cc26c 100644 --- a/media-libs/avidemux-plugins/files/avidemux-plugins-abs.patch +++ b/media-libs/avidemux-plugins/files/avidemux-plugins-abs.patch @@ -5,7 +5,7 @@ // The chosen frame doesn't match the prediction. if (predicted_metric == 0) mismatch = 0.0; - else mismatch = (100.0*abs(predicted_metric - lowest))/predicted_metric; -+ else mismatch = (100.0*abs(long(predicted_metric) - long(lowest)))/predicted_metric; ++ else mismatch = (100.0*abs(int64_t(predicted_metric) - int64_t(lowest)))/predicted_metric; if (mismatch < gthresh) { // It's close enough, so use the predicted one. @@ -14,7 +14,7 @@ // The chosen frame doesn't match the prediction. if (predicted_metric == 0) mismatch = 0.0; - else mismatch = (100.0*abs(predicted_metric - lowest))/predicted_metric; -+ else mismatch = (100.0*abs(long(predicted_metric) - long(lowest)))/predicted_metric; ++ else mismatch = (100.0*abs(int64_t(predicted_metric) - int64_t(lowest)))/predicted_metric; if ((int) mismatch <= gthresh) { // It's close enough, so use the predicted one. -- cgit v1.2.3-65-gdbad