<div dir="ltr">Hello guys!<br clear="all"><div>I have the issue with sws_scale and Qt on android:<br><br></div><div>Here is my code:<br><br>AVFrame *pict = av_frame_alloc();<br>                avpicture_alloc((AVPicture*) pict, AV_PIX_FMT_RGB24, width, height);<br>               
 sws_scale(sws_ctx, const_cast<const u_int8_t** const> 
(frame->data), frame->linesize, 0, height, pict->data, 
pict->linesize);<br>                QImage image(width, height, QImage::Format_RGB888);<br>                //QImage image(frame->data[0], frame->width, frame->height, QImage::Format_RGB888);<br><br>                for (int y = 0; y < height; ++ y)<br>                    memcpy(image.scanLine(y), frame->data[0] + y * frame->linesize[0], codec->width * 3);<br><br><br></div><div>In result Image repeats  3 times, please find attached file<br></div><div>What I do wrong?<br></div><div>-- <br>Regards,<br>Dmitry
</div></div>