The video buffer used for colorspace conversion was not aligned enough (it could need as much as 64 bytes alignment) and did not include enough padding (the functions work on 64 bytes blocks at once in some cases). This code could be made simpler by using sws_scale_frame instead of sws_scale, but that's more refactoring than I'm willing to do right now. Thanks to k32n13 for providing a script to generate test videos! Fixes #20200. Change-Id: I8b51fd777201cdb899ce1834152066378b258521 Reviewed-on: https://review.haiku-os.org/c/haiku/+/11343 Reviewed-by: waddlesplash <[email protected]> (cherry picked from commit a0bfeae472eee24a9855e9685a507f6f85d91673) Reviewed-on: https://review.haiku-os.org/c/haiku/+/11344