components/desktop/thunderbird/patches/firefox28-96-MediaDecoder.patch
changeset 5255 cea0e462549a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/desktop/thunderbird/patches/firefox28-96-MediaDecoder.patch	Mon Jan 11 09:27:45 2016 -0800
@@ -0,0 +1,14 @@
+Casts the value to an int since abs() only takes an integer argument.
+May want to change this so that we use labs() instead of abs().
+
+--- comm-esr31/mozilla/content/media/MediaDecoderStateMachine.cpp.orig	2015-06-04 17:42:52.361303668 -0700
++++ comm-esr31/mozilla/content/media/MediaDecoderStateMachine.cpp	2015-06-04 17:42:52.366561967 -0700
+@@ -1227,7 +1227,7 @@
+   AssertCurrentThreadInMonitor();
+   int64_t duration = GetDuration();
+   if (aDuration != duration &&
+-      abs(aDuration - duration) > ESTIMATED_DURATION_FUZZ_FACTOR_USECS) {
++      abs((int)(aDuration - duration)) > ESTIMATED_DURATION_FUZZ_FACTOR_USECS) {
+     SetDuration(aDuration);
+     nsCOMPtr<nsIRunnable> event =
+       NS_NewRunnableMethod(mDecoder, &MediaDecoder::DurationChanged);