Merge changes I7cb2ed2c,I84ffe9e9

* changes:
  C2SoftAvc: handle flexible YUV
  C2SoftAvcEnc: Use dimensions from mSize instead of input buffer