<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>>> When the streaming is coming in as 320X240, it converts to
>> AV_PIX_FMT_BGRA without problems. However, if it is coming
>> in as 432x240, the converted image is full of white, gray,
>> and black slanted horizontal lines.
>
> Either linesize or width is incorrectly set.
>
The width and height are set to be the same as the source. I didn't set any linesize in my code. I have the following code
int numBytes = avpicture_get_size(imgPixFormat, vp->width, vp->height);
vp->bmp = new uint8_t[numBytes*sizeof(uint8_t)];
avpicture_fill((AVPicture *)vp->frame, vp->bmp, imgPixFormat, vp->width, vp->height);
where
vp>frame is AVFrame*
vp->bmp is uint8__t*
width and height are int;
Or do I need to set my linesize? </div></body>
</html>