Index: media/base/android/media_codec_bridge.cc |
diff --git a/media/base/android/media_codec_bridge.cc b/media/base/android/media_codec_bridge.cc |
index 92b2791506d3eef0e67a67c24ae7185de1d8db30..7ece5d558e6fa03937e5efc3b6fb1a1d5cbcccfb 100644 |
--- a/media/base/android/media_codec_bridge.cc |
+++ b/media/base/android/media_codec_bridge.cc |
@@ -176,7 +176,8 @@ bool MediaCodecBridge::IsKnownUnaccelerated(const std::string& mime_type, |
// It would be nice if MediaCodecInfo externalized some notion of |
// HW-acceleration but it doesn't. Android Media guidance is that the |
// prefix below is always used for SW decoders, so that's what we use. |
- return StartsWithASCII(codecs_info[i].name, "OMX.google.", true); |
+ if (!StartsWithASCII(codecs_info[i].name, "OMX.google.", true)) |
+ return false; |
} |
} |
return true; |