summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHong Teng <hongteng@google.com>2011-11-30 16:42:56 -0800
committerHong Teng <hongteng@google.com>2011-11-30 17:35:58 -0800
commit38ca8aaf3ad045d8623bce0be9b351ae9004abb3 (patch)
treec6cf5834094e169801550b6541dcc994998cc5ae
parent8e61113210e4c3c1ce57ecef1dda327bea85c19c (diff)
downloadlibvideoeditor-ics-mr1.tar.gz
Handle the decoder error case, this modification is to fix the native crash. Change-Id: I3f2ef62b591ebfb9e01153b80b04eb330f575207
-rwxr-xr-xvss/stagefrightshells/src/VideoEditorVideoDecoder.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/vss/stagefrightshells/src/VideoEditorVideoDecoder.cpp b/vss/stagefrightshells/src/VideoEditorVideoDecoder.cpp
index 0d5ea64..82e149b 100755
--- a/vss/stagefrightshells/src/VideoEditorVideoDecoder.cpp
+++ b/vss/stagefrightshells/src/VideoEditorVideoDecoder.cpp
@@ -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