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

Commit 00b82d39 authored by Hong Teng's avatar Hong Teng
Browse files

Fix for issue 5490443 Native crash while exporting a video

Handle the decoder error case, this modification is to fix the native crash.

Change-Id: I3f2ef62b591ebfb9e01153b80b04eb330f575207
parent c8d53b61
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1396,6 +1396,11 @@ M4OSA_ERR VideoEditorVideoDecoder_decode(M4OSA_Context context,
                break;
            }
            continue;
        } else if (errStatus != OK) {
            LOGE("VideoEditorVideoDecoder_decode ERROR:0x%x(%d)",
                errStatus,errStatus);
            lerr = errStatus;
            goto VIDEOEDITOR_VideoDecode_cleanUP;
        }

        // The OMXCodec client should expect to receive 0-length buffers