Revision 8c9d49f2 vhook/fish.c

View differences:

vhook/fish.c
338 338
            }
339 339

  
340 340
            if (foundfile < ci->file_limit) {
341
                FILE *f;
342
                char fname[256];
343

  
341 344
                size = avpicture_get_size(PIX_FMT_RGB24, width, height);
342 345
                buf = av_malloc(size);
343 346

  
......
360 363
                              picture1.data, picture1.linesize);
361 364

  
362 365
                    /* Write out the PPM file */
363

  
364
                    FILE *f;
365
                    char fname[256];
366

  
367 366
                    snprintf(fname, sizeof(fname), "%s/fishimg%ld_%"PRId64".ppm", ci->dir, (long)(av_gettime() / 1000000), pts);
368 367
                    f = fopen(fname, "w");
369 368
                    if (f) {

Also available in: Unified diff