Merge "Fix the software AAC decoder's AAC+ detection to ignore malformed frames"
This commit is contained in:
committed by
Android (Google) Code Review
commit
02bb0e4e3b
@@ -316,7 +316,7 @@ void SoftAAC::onQueueFilled(OMX_U32 portIndex) {
|
||||
* Thus, we could not say for sure whether a stream is
|
||||
* AAC+/eAAC+ until the first data frame is decoded.
|
||||
*/
|
||||
if (mInputBufferCount <= 2) {
|
||||
if (decoderErr == MP4AUDEC_SUCCESS && mInputBufferCount <= 2) {
|
||||
LOGV("audio/extended audio object type: %d + %d",
|
||||
mConfig->audioObjectType, mConfig->extendedAudioObjectType);
|
||||
LOGV("aac+ upsampling factor: %d desired channels: %d",
|
||||
@@ -410,7 +410,9 @@ void SoftAAC::onQueueFilled(OMX_U32 portIndex) {
|
||||
notifyFillBufferDone(outHeader);
|
||||
outHeader = NULL;
|
||||
|
||||
++mInputBufferCount;
|
||||
if (decoderErr == MP4AUDEC_SUCCESS) {
|
||||
++mInputBufferCount;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user