bitwhip
bitwhip copied to clipboard
Bug: fix player texture upload stride mismatch
On certain display sizes, anytime the stride length included some padding, av_image_copy_to_buffer would crash because it seems create_texture_streaming isn't including the padding in ITS buffer, so we write past the end.
My current solution is to manually implement the copy, trimming padding. It seems to work, but not a video expert, so definitely open to feedback here