Originally committed as revision 18171 to svn://svn.ffmpeg.org/ffmpeg/trunk
avcoder authored on 2009/03/24 01:43:06... | ... |
@@ -1227,7 +1227,6 @@ static int queue_picture(VideoState *is, AVFrame *src_frame, double pts) |
1227 | 1227 |
{ |
1228 | 1228 |
VideoPicture *vp; |
1229 | 1229 |
int dst_pix_fmt; |
1230 |
- AVPicture pict; |
|
1231 | 1230 |
static struct SwsContext *img_convert_ctx; |
1232 | 1231 |
|
1233 | 1232 |
/* wait until we have space to put a new picture */ |
... | ... |
@@ -1270,10 +1269,13 @@ static int queue_picture(VideoState *is, AVFrame *src_frame, double pts) |
1270 | 1270 |
|
1271 | 1271 |
/* if the frame is not skipped, then display it */ |
1272 | 1272 |
if (vp->bmp) { |
1273 |
+ AVPicture pict; |
|
1274 |
+ |
|
1273 | 1275 |
/* get a pointer on the bitmap */ |
1274 | 1276 |
SDL_LockYUVOverlay (vp->bmp); |
1275 | 1277 |
|
1276 | 1278 |
dst_pix_fmt = PIX_FMT_YUV420P; |
1279 |
+ memset(&pict,0,sizeof(AVPicture)); |
|
1277 | 1280 |
pict.data[0] = vp->bmp->pixels[0]; |
1278 | 1281 |
pict.data[1] = vp->bmp->pixels[2]; |
1279 | 1282 |
pict.data[2] = vp->bmp->pixels[1]; |