Bug 1118528 - Increase fuzz threshold for mp4. r=ajones
authorMatt Woodrow <mwoodrow@mozilla.com>
Mon, 12 Jan 2015 09:48:23 +1300
changeset 223217 7e4003516dd5f56463945c8e06515f28abefa83c
parent 223216 6f70785ed447f102427cc01a76cdb1ddfe14fce6
child 223218 19b8c420b13a31d1d1e12cc642493be2e82059de
push id10769
push usercbook@mozilla.com
push dateMon, 12 Jan 2015 14:15:52 +0000
treeherderfx-team@0e9765732906 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersajones
bugs1118528
milestone37.0a1
Bug 1118528 - Increase fuzz threshold for mp4. r=ajones
dom/media/mediasource/ContainerParser.cpp
--- a/dom/media/mediasource/ContainerParser.cpp
+++ b/dom/media/mediasource/ContainerParser.cpp
@@ -284,19 +284,21 @@ public:
     }
     aStart = compositionRange.start;
     aEnd = compositionRange.end;
     MSE_DEBUG("MP4ContainerParser(%p)::ParseStartAndEndTimestamps: [%lld, %lld]",
               this, aStart, aEnd);
     return true;
   }
 
+  // Gaps of up to 20ms (marginally longer than a single frame at 60fps) are considered
+  // to be sequential frames.
   int64_t GetRoundingError()
   {
-    return 1000;
+    return 20000;
   }
 
 private:
   nsRefPtr<mp4_demuxer::BufferStream> mStream;
   nsAutoPtr<mp4_demuxer::MoofParser> mParser;
   Monitor mMonitor;
 };