mm-video: vidc: handle EOS buffers and timestamps correctly

When EOS buffer with nFileLen > 0 is queued, the component
appends it to the buffer before the EOS. This results in a buffer with
two frames to be queued to the decoder, which subsequently ignores the
second frame.

Additionally, when generating delayed ETBs in the EOS case, the wrong
timestamp gets added for deferred frames.

Change-Id: I5fe3e97327b2730c43570f41cd944418a8e32fba
CRs-fixed: 515586
1 file changed