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

Commit d049e945 authored by Sanjay Singh's avatar Sanjay Singh Committed by Gerrit - the friendly Code Review server
Browse files

stagefright: ACodec: Handle temporal layered encoding error

There will be error for chipsets which does not support temporal
layer encoding. To avoid tear down of session, error should be
changed to OK to treat it as not fatal error.

Change-Id: Idd9fdbe45c82f2ced9dc9dae3b3453949910c65e
parent 0aeb9483
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -3876,7 +3876,10 @@ status_t ACodec::setupVideoEncoder(
            if (err != OK) {
                ALOGE("Configuring temporal layers (P=%d B=%d) failed: %d",
                        numLayers, numBLayers, err);
                // not a fatal error
                // not a fatal error, set error code to OK
                // This will avoid tear down of session where temporal
                // layer encoding is not supported for some chipsets
                err = OK;
            }
        }
    }