summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-11-14 12:40:26 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-11-14 13:36:02 +0100
commitdec6515881e54b95666d52ffaa1a0eac414d21e7 (patch)
tree817c4f85715f7d9a0ac299d8253fee56ba620bb1
parent9dbb1110bedd35664f17c84e6459b6b597b14f70 (diff)
downloadadvtime-dec6515881e54b95666d52ffaa1a0eac414d21e7.tar.gz
advtime-dec6515881e54b95666d52ffaa1a0eac414d21e7.tar.bz2
advtime-dec6515881e54b95666d52ffaa1a0eac414d21e7.zip
frame_to_pgm: Fix identation
-rw-r--r--src/frame_to_pgm.c18
1 files changed, 9 insertions, 9 deletions
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;