[FFmpeg-cvslog] r18171 - trunk/ffplay.c
benoit
subversion
Mon Mar 23 17:43:06 CET 2009
Author: benoit
Date: Mon Mar 23 17:43:06 2009
New Revision: 18171
Log:
Move declaration of 'pict' closer to where it is used and initialize it.
Patch by avcoder: gmail(ffmpeg)
Modified:
trunk/ffplay.c
Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c Mon Mar 23 11:58:05 2009 (r18170)
+++ trunk/ffplay.c Mon Mar 23 17:43:06 2009 (r18171)
@@ -1227,7 +1227,6 @@ static int queue_picture(VideoState *is,
{
VideoPicture *vp;
int dst_pix_fmt;
- AVPicture pict;
static struct SwsContext *img_convert_ctx;
/* wait until we have space to put a new picture */
@@ -1270,10 +1269,13 @@ static int queue_picture(VideoState *is,
/* if the frame is not skipped, then display it */
if (vp->bmp) {
+ AVPicture pict;
+
/* get a pointer on the bitmap */
SDL_LockYUVOverlay (vp->bmp);
dst_pix_fmt = PIX_FMT_YUV420P;
+ memset(&pict,0,sizeof(AVPicture));
pict.data[0] = vp->bmp->pixels[0];
pict.data[1] = vp->bmp->pixels[2];
pict.data[2] = vp->bmp->pixels[1];
More information about the ffmpeg-cvslog
mailing list