[Ffmpeg-cvslog] r6705 - trunk/vhook/fish.c

diego subversion
Mon Oct 16 12:20:33 CEST 2006


Author: diego
Date: Mon Oct 16 12:20:33 2006
New Revision: 6705

Modified:
   trunk/vhook/fish.c

Log:
Don't mix declarations and statements.


Modified: trunk/vhook/fish.c
==============================================================================
--- trunk/vhook/fish.c	(original)
+++ trunk/vhook/fish.c	Mon Oct 16 12:20:33 2006
@@ -338,6 +338,9 @@
             }
 
             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 @@
                               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) {




More information about the ffmpeg-cvslog mailing list