diff options
author | Diego Biurrun <diego@biurrun.de> | 2006-10-16 10:20:33 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2006-10-16 10:20:33 +0000 |
commit | 8c9d49f266b41895f2b500c196b97d089be271c4 (patch) | |
tree | 8140be150d5d4763398c09c8e037e72f240f3fc8 /vhook/fish.c | |
parent | 1d7c1118565d6e8697e17713e203cc1522c38f45 (diff) | |
download | ffmpeg-8c9d49f266b41895f2b500c196b97d089be271c4.tar.gz |
Don't mix declarations and statements.
Originally committed as revision 6705 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'vhook/fish.c')
-rw-r--r-- | vhook/fish.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/vhook/fish.c b/vhook/fish.c index 7ab34483ab..a2dbd2f27b 100644 --- a/vhook/fish.c +++ b/vhook/fish.c @@ -338,6 +338,9 @@ void Process(void *ctx, AVPicture *picture, enum PixelFormat pix_fmt, int width, } if (foundfile < ci->file_limit) { + FILE *f; + char fname[256]; + size = avpicture_get_size(PIX_FMT_RGB24, width, height); buf = av_malloc(size); @@ -360,10 +363,6 @@ void Process(void *ctx, AVPicture *picture, enum PixelFormat pix_fmt, int width, picture1.data, picture1.linesize); /* Write out the PPM file */ - - FILE *f; - char fname[256]; - snprintf(fname, sizeof(fname), "%s/fishimg%ld_%"PRId64".ppm", ci->dir, (long)(av_gettime() / 1000000), pts); f = fopen(fname, "w"); if (f) { |