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();