Merge "C2SoftFlacEnc: Update max input buffer size calculation" into main