<div dir="ltr"><div>the call</div><div style="margin-left:40px">struct SwsContext* sws = sws_getContext(w, h, AV_PIX_FMT_GRAYF32LE, w, h, AV_PIX_FMT_GRAYF32LE, ...);</div><div>seems to cause an assertion failure</div><div style="margin-left:40px">Assertion c->srcBpc == 16 failed at libswscale/x86/swscale.c:533</div><div>on my amd64 machine with libswscale version 7.6.100.</div><div><br></div><div>when libswscale is compiled in release mode, no error occurs and the scaled output only contains a 1/4 of each line in the source image, as if swscale forgot that floats are 4 bytes, not 1. the issue appears to fix itself when sws_getContext is given the source width * 4.</div><div><br></div><div>the same issue also exists for the pixel formats gbrpf32 and gbrapf32, however neither of those give an assertion error in debug mode and instead just output 1/4 of the source lines every time.</div><div><br></div><div>note that this ONLY happens when both source and destination dimensions and pixel formats are the same. any conversion or scaling seems to work fine.</div><div><br></div><div>i believe this is a bug, but please let me know if i am doing anything wrong instead.<br></div><div><div><div><div><div></div></div></div></div></div></div>