diff options
author | Martin Väth <martin@mvath.de> | 2016-08-28 07:02:38 +0200 |
---|---|---|
committer | Martin Väth <martin@mvath.de> | 2016-08-28 07:02:38 +0200 |
commit | 3ae66c442a0dbb1e648ed8a042d67941f4d56d87 (patch) | |
tree | 941cde467903d2ef56e33f519d969df05e88eff1 /media-libs | |
parent | app-portage/portage-bashrc-mv: Fix REPLACING_VERSIONS usage (diff) | |
download | mv-3ae66c442a0dbb1e648ed8a042d67941f4d56d87.tar.gz mv-3ae66c442a0dbb1e648ed8a042d67941f4d56d87.tar.bz2 mv-3ae66c442a0dbb1e648ed8a042d67941f4d56d87.zip |
Use int64_t in abs patch
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/avidemux-plugins/files/avidemux-plugins-abs.patch | 4 |
1 files changed, 2 insertions, 2 deletions
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. |