From dec6515881e54b95666d52ffaa1a0eac414d21e7 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Wed, 14 Nov 2012 12:40:26 +0100 Subject: frame_to_pgm: Fix identation --- src/frame_to_pgm.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/frame_to_pgm.c b/src/frame_to_pgm.c index f6a7dc9..5295c56 100644 --- a/src/frame_to_pgm.c +++ b/src/frame_to_pgm.c @@ -7,14 +7,14 @@ static void pgm_save(unsigned char *buf, int wrap, int xsize, int ysize, char *filename) { - FILE *f; - int i; - - f = fopen(filename, "w"); - fprintf(f, "P5\n%d %d\n%d\n", xsize, ysize, 255); - for(i=0; i < ysize; i++) - fwrite(buf + i * wrap, 1, xsize, f); - fclose(f); + FILE *f; + int i; + + f = fopen(filename, "w"); + fprintf(f, "P5\n%d %d\n%d\n", xsize, ysize, 255); + for (i=0; i < ysize; i++) + fwrite(buf + i * wrap, 1, xsize, f); + fclose(f); } int @@ -34,7 +34,7 @@ main(int argc, char **argv) ret = video_decode_init(&vd, argv[1], timestamp); if (ret < 0) return -ret; - + ret = video_decode_get_frame(vd, &frame); if (ret < 0) return -ret; -- cgit