openh264enc: Switch to an adapter for the output

Appending too many memories to a buffer is going to be slower
as it will cause copy of the buffer and then appending of the memory.