upipe_audiocont, upipe_videocont: change behaviour

- Copy input flow format to flow definition when available
  instead of reference flow format
- Do not use reference buffer in audiocont, allocate new
  ubuf with reference size and input flow format