Merge "Apparently the TI video decoder only supports H.264 up to baseline profile/level 3, not level 3.x as previously assumed." into kraken
This commit is contained in:
committed by
Android (Google) Code Review
commit
66b89a62aa
@@ -538,11 +538,12 @@ status_t OMXCodec::configureCodec(const sp<MetaData> &meta) {
|
|||||||
size -= length;
|
size -= length;
|
||||||
}
|
}
|
||||||
|
|
||||||
LOGV("AVC profile = %d (%s), level = %d",
|
CODEC_LOGV(
|
||||||
(int)profile, AVCProfileToString(profile), (int)level / 10);
|
"AVC profile = %d (%s), level = %d",
|
||||||
|
(int)profile, AVCProfileToString(profile), level);
|
||||||
|
|
||||||
if (!strcmp(mComponentName, "OMX.TI.Video.Decoder")
|
if (!strcmp(mComponentName, "OMX.TI.Video.Decoder")
|
||||||
&& (profile != kAVCProfileBaseline || level > 39)) {
|
&& (profile != kAVCProfileBaseline || level > 30)) {
|
||||||
// This stream exceeds the decoder's capabilities. The decoder
|
// This stream exceeds the decoder's capabilities. The decoder
|
||||||
// does not handle this gracefully and would clobber the heap
|
// does not handle this gracefully and would clobber the heap
|
||||||
// and wreak havoc instead...
|
// and wreak havoc instead...
|
||||||
|
|||||||
Reference in New Issue
Block a user