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

Commit 04796937 authored by Ayushi Khopkar's avatar Ayushi Khopkar
Browse files

libstagefright: Bug Fix

Added NULL check before accessing 'mDecoder' in FrameDecoder

Test: Build libstagefright
Bug: 180615272

Change-Id: I6491e9795691fe4bf8f64688ab44704d286ecc85
parent a85beb47
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -348,6 +348,10 @@ status_t FrameDecoder::extractInternal() {
    status_t err = OK;
    bool done = false;
    size_t retriesLeft = kRetryCount;
    if (!mDecoder) {
        ALOGE("decoder is not initialized");
        return NO_INIT;
    }
    do {
        size_t index;
        int64_t ptsUs = 0LL;