Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48624701 authored by James Dong's avatar James Dong
Browse files

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

Change-Id: I9ec6d8205e7a56e42d5b5799a6c2e31076d24b81
parent c5a57efb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ private:
        kInputPortIndex   = 0,
        kOutputPortIndex  = 1,
        kNumInputBuffers  = 8,
        kNumOutputBuffers = 16,
        kNumOutputBuffers = 2,
    };

    enum EOSStatus {