commit | 072be1ea494b0f4ca6d184e6c53d9ba01e539de2 | [log] [tgz] |
---|---|---|
author | Chih-Chung Chang <chihchung@google.com> | Fri Aug 26 11:29:14 2011 +0800 |
committer | Chih-Chung Chang <chihchung@google.com> | Fri Aug 26 11:29:51 2011 +0800 |
tree | 5352005510edafc2392ac801c1bdc3929565cd06 | |
parent | aef59c544429aae73429a1325d43e830600e3b67 [diff] |
Fix 5200962: Handle 0-length buffers from OMXCodec and drop it. Change-Id: I67c42c41f649f8e37055721efb67ab3ca4b02f0b
diff --git a/libvideoeditor/vss/stagefrightshells/src/VideoEditorVideoDecoder.cpp b/libvideoeditor/vss/stagefrightshells/src/VideoEditorVideoDecoder.cpp index f038b47..c5f1a0f 100755 --- a/libvideoeditor/vss/stagefrightshells/src/VideoEditorVideoDecoder.cpp +++ b/libvideoeditor/vss/stagefrightshells/src/VideoEditorVideoDecoder.cpp
@@ -1384,6 +1384,13 @@ continue; } + // The OMXCodec client should expect to receive 0-length buffers + // and drop the 0-length buffers. + if (pNextBuffer->range_length() == 0) { + pNextBuffer->release(); + continue; + } + // Now we have a good next buffer, release the previous one. if (pDecoderBuffer != NULL) { pDecoderBuffer->release();