LAVFilters icon indicating copy to clipboard operation
LAVFilters copied to clipboard

Crash in CLAVPixFmtConverter::ConvertDirect -> plane_copy_direct_sse4

Open clsid2 opened this issue 8 months ago • 0 comments

pFrame has size 1920x1080, but the buffer only has a stride of 1280.

PixFmt NV12, renderer MadVR. I am not sure how or when this can happen. There are 1500+ crashes in DrDump.

Image

Crash happens when reading 0x000001AA777A4000. So seems like amount of data corresponding to a 1280x720 frame.

LAVDirectBuffer probably should be zero-initialized? Maybe store texture width/height in LAVDirectBuffer, so MIN value can be used in call to convert_direct in case resolution is smaller than expected? Or maybe just return E_FAIL in case of too small input stride?

clsid2 avatar May 09 '25 14:05 clsid2