mm-video: vidc: hevc: extradata issue fixes

Extradata buffer size needs to be added to hybrid
output buffer requirement. In handle_extradata if
the extradata pointer is at the end of the buffer,
need to set it NULL. When appending extradata to the
output buffer, need to check for null pointer.

Change-Id: I40b83cd7f33e463665d351c7546c6bb56bb3db9c
2 files changed