summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;