EleonoreMizo / fmtconv

Format conversion tools for Vapoursynth and Avisynth+
Do What The F*ck You Want To Public License
67 stars 14 forks source link

BitBltConv.cpp: fix duplicated conversion in `bitblt_int_to_flt_cpp`. #40

Closed SaltyChiang closed 1 year ago

SaltyChiang commented 1 year ago

For CPUs without SSE or AVX, e.g. Apple M1, bitblt_int_to_flt_cpp will be called if int to float conversion is applied. fmtconv will give a wrong result because of the duplicated val * gain + add_cst.

EleonoreMizo commented 1 year ago

Thank you very much for this bug fix!