diff options
author | Diego Biurrun <diego@biurrun.de> | 2011-06-15 00:30:03 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2011-06-26 16:32:13 +0200 |
commit | f3876ea4850dcb52c200cf7b8955dc6790626829 (patch) | |
tree | d492fe98f0d18634eafecb4b5e1dbd9319f94b3b /ffplay.c | |
parent | d0ce090ec553c88eb8e9c303156017417d4599cc (diff) | |
download | ffmpeg-f3876ea4850dcb52c200cf7b8955dc6790626829.tar.gz |
Move some variable declarations below the proper #ifdefs.
This avoids warnings about set-but-unused variables.
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1313,9 +1313,10 @@ static void alloc_picture(void *opaque) static int queue_picture(VideoState *is, AVFrame *src_frame, double pts, int64_t pos) { VideoPicture *vp; - int dst_pix_fmt; #if CONFIG_AVFILTER AVPicture pict_src; +#else + int dst_pix_fmt = PIX_FMT_YUV420P; #endif /* wait until we have space to put a new picture */ SDL_LockMutex(is->pictq_mutex); @@ -1376,7 +1377,6 @@ static int queue_picture(VideoState *is, AVFrame *src_frame, double pts, int64_t /* 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]; |