Return error code if output buffer is full in aec_buffer_encode().