vpu: encoder: updated base class and h264 encoder

* fixed incorrect behavior in the beginning, when only the headers
are produced
* added code to h264 encoder to produce access unit delimiters if
downstream caps require them

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>