Reduce the number of output buffers and force output buffers in display order for SoftAVC decoder
Change-Id: I9ec6d8205e7a56e42d5b5799a6c2e31076d24b81
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -52,7 +52,7 @@ private:
|
||||
kInputPortIndex = 0,
|
||||
kOutputPortIndex = 1,
|
||||
kNumInputBuffers = 8,
|
||||
kNumOutputBuffers = 16,
|
||||
kNumOutputBuffers = 2,
|
||||
};
|
||||
|
||||
enum EOSStatus {
|
||||
|
||||
Reference in New Issue
Block a user