am 38ca8aaf: Fix for issue 5490443 Native crash while exporting a video Handle the decoder error case, this modification is to fix the native crash.
* commit '38ca8aaf3ad045d8623bce0be9b351ae9004abb3':
Fix for issue 5490443 Native crash while exporting a video Handle the decoder error case, this modification is to fix the native crash.
diff --git a/libvideoeditor/vss/stagefrightshells/src/VideoEditorVideoDecoder.cpp b/libvideoeditor/vss/stagefrightshells/src/VideoEditorVideoDecoder.cpp
index 6a9c2da..39546db 100755
--- a/libvideoeditor/vss/stagefrightshells/src/VideoEditorVideoDecoder.cpp
+++ b/libvideoeditor/vss/stagefrightshells/src/VideoEditorVideoDecoder.cpp
@@ -1396,6 +1396,11 @@
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