Fix bug in android MediaCodec integration causing corrupted decoded images when the MediaCodec runs out of buffers.