diff options
author | Andreas Huber <andih@google.com> | 2010-06-10 09:51:27 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-06-10 09:52:11 -0700 |
commit | e2f85077a25bcde1f041b6d085cfd50cfc0eeaed (patch) | |
tree | 00deb62f7c011155cd99ea4ef635177554a83713 /media/libstagefright | |
parent | 55f8209da3048768a6dc24929dec8798e8ddf077 (diff) | |
download | frameworks_base-e2f85077a25bcde1f041b6d085cfd50cfc0eeaed.zip frameworks_base-e2f85077a25bcde1f041b6d085cfd50cfc0eeaed.tar.gz frameworks_base-e2f85077a25bcde1f041b6d085cfd50cfc0eeaed.tar.bz2 |
Apparently the TI video decoder only supports H.264 up to baseline profile/level 3, not level 3.x as previously assumed.
Change-Id: I4a9aa80f392dbef72f81e25c67e5bd0654848b2c
Diffstat (limited to 'media/libstagefright')
-rw-r--r-- | media/libstagefright/OMXCodec.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp index ba35748..14682af 100644 --- a/media/libstagefright/OMXCodec.cpp +++ b/media/libstagefright/OMXCodec.cpp @@ -538,11 +538,12 @@ status_t OMXCodec::configureCodec(const sp<MetaData> &meta) { size -= length; } - LOGV("AVC profile = %d (%s), level = %d", - (int)profile, AVCProfileToString(profile), (int)level / 10); + CODEC_LOGV( + "AVC profile = %d (%s), level = %d", + (int)profile, AVCProfileToString(profile), level); if (!strcmp(mComponentName, "OMX.TI.Video.Decoder") - && (profile != kAVCProfileBaseline || level > 39)) { + && (profile != kAVCProfileBaseline || level > 30)) { // This stream exceeds the decoder's capabilities. The decoder // does not handle this gracefully and would clobber the heap // and wreak havoc instead... |