mm-video-v4l2: vidc: venc: Pass correct input buffers for gralloc source

For non color conversion input buffers, component should return
back the client buffer to IL client instead of meta buffer.
Without this change, IL client would hit an ASSERT for wrong
buffer index.

For opaque input buffers, which do not use color conversion,
return meta buffer to base layer instead of client buffer.
Without this change, we see a crash in omx_release_meta_buffer()
when trying to access invalid buffer handle.

Change-Id: I03be495219ff304950754cc69f469d7f2ac6bc4c
3 files changed