summaryrefslogtreecommitdiffstats
path: root/ffplay.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2011-06-15 00:30:03 +0200
committerDiego Biurrun <diego@biurrun.de>2011-06-26 16:32:13 +0200
commitf3876ea4850dcb52c200cf7b8955dc6790626829 (patch)
treed492fe98f0d18634eafecb4b5e1dbd9319f94b3b /ffplay.c
parentd0ce090ec553c88eb8e9c303156017417d4599cc (diff)
downloadffmpeg-streaming-f3876ea4850dcb52c200cf7b8955dc6790626829.zip
ffmpeg-streaming-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffplay.c b/ffplay.c
index 43cd50c..73b30c4 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -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];
OpenPOWER on IntegriCloud