From 44e15c44ad10b36bd3649b21ea7432348e2f05f8 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Mon, 23 Nov 2009 14:39:38 -0800 Subject: [PATCH] Some playable/decodable streams have been found in the wild that violate this assertion, let's be lenient for now. --- media/libstagefright/OMXCodec.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp index 10a498673eac5..c5e935d041e5f 100644 --- a/media/libstagefright/OMXCodec.cpp +++ b/media/libstagefright/OMXCodec.cpp @@ -351,7 +351,9 @@ sp OMXCodec::Create( uint8_t profile = ptr[1]; uint8_t level = ptr[3]; - CHECK((ptr[4] >> 2) == 0x3f); // reserved + // There is decodable content out there that fails the following + // assertion, let's be lenient for now... + // CHECK((ptr[4] >> 2) == 0x3f); // reserved size_t lengthSize = 1 + (ptr[4] & 3);