<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Hi</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">My problem with the code I attached is that when hardware for decoding is available, I get exception on line 136, the return value of sws_scale is not as expected. If I don't check it, I get a black image. I also get the ffmpeg error message bad src image pointers. This is while when hxva2 decoding is not available the sws_scale function operates properly and I get a correct image.</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">I don't know what is wrong with the code.<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div></div></div>