Merge "Reduce the number of output buffers and force output buffers in display order for SoftAVC decoder"

This commit is contained in:
James Dong
2011-06-27 10:34:13 -07:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 2 deletions

View File

@@ -139,7 +139,8 @@ void SoftAVC::initPorts() {
}
status_t SoftAVC::initDecoder() {
if (H264SwDecInit(&mHandle, 1) == H264SWDEC_OK) {
// Force decoder to output buffers in display order.
if (H264SwDecInit(&mHandle, 0) == H264SWDEC_OK) {
return OK;
}
return UNKNOWN_ERROR;

View File

@@ -52,7 +52,7 @@ private:
kInputPortIndex = 0,
kOutputPortIndex = 1,
kNumInputBuffers = 8,
kNumOutputBuffers = 16,
kNumOutputBuffers = 2,
};
enum EOSStatus {