Merge "C2SoftAvcEnc: don't crash at unexpected input"