| commit | 00b82d39c6d1b4e0594857ef5113f46775c4a065 | [log] [tgz] |
|---|---|---|
| author | Hong Teng <hongteng@google.com> | Wed Nov 30 16:42:56 2011 -0800 |
| committer | Hong Teng <hongteng@google.com> | Wed Nov 30 17:35:58 2011 -0800 |
| tree | e56345ffeb4157b9499436493c2e1b89d913ee17 | |
| parent | c8d53b6147249440e6b99f88adc795ac82e1a050 [diff] |
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
diff --git a/libvideoeditor/vss/stagefrightshells/src/VideoEditorVideoDecoder.cpp b/libvideoeditor/vss/stagefrightshells/src/VideoEditorVideoDecoder.cpp index 0d5ea64..82e149b 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