Bug 994015 - [tarako]some mp4 video plays not smoothly r=cpearce
authorMing <ming.li@spreadtrum.com>
Fri, 11 Apr 2014 02:10:00 +0200
changeset 197045 b2a9790f3753adc83dc669009ee99fa01556aaed
parent 197044 851c041ac794b4c3115b70a15e0108d5f70b31e2
child 197046 00b716b32cdaa58bf6a631bf1130c0862ac2acfb
push id3624
push userasasaki@mozilla.com
push dateMon, 09 Jun 2014 21:49:01 +0000
treeherdermozilla-beta@b1a5da15899a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscpearce
bugs994015
milestone31.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 994015 - [tarako]some mp4 video plays not smoothly r=cpearce
content/media/omx/MediaOmxReader.cpp
--- a/content/media/omx/MediaOmxReader.cpp
+++ b/content/media/omx/MediaOmxReader.cpp
@@ -21,17 +21,17 @@
 #ifdef MOZ_AUDIO_OFFLOAD
 #include <stagefright/Utils.h>
 #include <cutils/properties.h>
 #include <stagefright/MetaData.h>
 #endif
 
 #define MAX_DROPPED_FRAMES 25
 // Try not to spend more than this much time in a single call to DecodeVideoFrame.
-#define MAX_VIDEO_DECODE_SECONDS 3.0
+#define MAX_VIDEO_DECODE_SECONDS 0.1
 
 using namespace mozilla::gfx;
 using namespace android;
 
 namespace mozilla {
 
 #ifdef PR_LOGGING
 extern PRLogModuleInfo* gMediaDecoderLog;