<div style="font-family: arial; font-size: 14px;"><div style="font-family: arial; font-size: 14px;">Hi,<br></div><div style="font-family: arial; font-size: 14px;"><br></div><div style="font-family: arial; font-size: 14px;">I'm trying to scale an image in hardware using VA-API with libavfilter. I also want to change the colorspace of the image to BGRA. However, the output frame I get is just a black image with a white line on top. How do I fix this? Let me know if more information is required.<br></div></div><div style="font-family: arial; font-size: 14px;"><br></div><div style="font-family: arial; font-size: 14px;">Code: <a href="https://pastecord.com/eqagejavum.cpp">https://pastecord.com/eqagejavum.cpp</a><br></div><div style="font-family: arial; font-size: 14px;"><br></div><div style="font-family: arial; font-size: 14px;">Thanks in advance</div>