summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Väth <martin@mvath.de>2016-08-27 21:09:05 +0200
committerMartin Väth <martin@mvath.de>2016-08-27 21:09:05 +0200
commit32f757d30afeafe6c34cda02b6a11b42fff90d06 (patch)
tree16ea1820c64e4434230471f5f9b21d441663216f /media-libs/avidemux-plugins
parentapp-portage/portage-postsyncd-mv: Version bump (diff)
downloadmv-32f757d30afeafe6c34cda02b6a11b42fff90d06.tar.gz
mv-32f757d30afeafe6c34cda02b6a11b42fff90d06.tar.bz2
mv-32f757d30afeafe6c34cda02b6a11b42fff90d06.zip
media-libs/avidemux-plugins: Fix abs patch on i686
Diffstat (limited to 'media-libs/avidemux-plugins')
-rw-r--r--media-libs/avidemux-plugins/files/avidemux-plugins-abs.patch4
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 0c4a903a..3e5f22da 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) - lowest))/predicted_metric;
++ else mismatch = (100.0*abs(long(predicted_metric) - long(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) - lowest))/predicted_metric;
++ else mismatch = (100.0*abs(long(predicted_metric) - long(lowest)))/predicted_metric;
if ((int) mismatch <= gthresh)
{
// It's close enough, so use the predicted one.