Thank you Carl, So I think I am back to square one, I need to find out which data is not aligned. Is there a way to obtain debug information (Visual Studio 2017 64bit) for swscale.h so I could step in to the code and see what is going on there? Best regards, Wodzu