From ab959d7b4194715870128e616b8e29d4a101e488 Mon Sep 17 00:00:00 2001 From: etobi Date: Tue, 3 Sep 2013 09:48:41 +0200 Subject: Imported Upstream version 1.1.1+rev1207 --- test/test_stillimage.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'test/test_stillimage.c') diff --git a/test/test_stillimage.c b/test/test_stillimage.c index 264b2c4..358c0f1 100644 --- a/test/test_stillimage.c +++ b/test/test_stillimage.c @@ -6,7 +6,7 @@ * * or more advanced using netpbm and mpeg2enc (not mpeg2encode) : * $ cat image.jpg | jpegtopnm | pnmscale -xsize=704 -ysize=576 |\ - * ppmntsc --pal | ppmtoy4m -F 25:1 -A 4:3 |\ + * ppmntsc --pal | ppmtoy4m -F 25:1 -A 4:3 -S 420mpeg2 |\ * mpeg2enc -f 7 -T 90 -F 3 -np -a 2 -o "image.mpg" * */ @@ -21,6 +21,7 @@ #include #include +#include #include @@ -82,7 +83,7 @@ next_pic: return -1; } - printf ("read: %d bytes\n", read(filefd, sp.iFrame, sp.size)); + printf ("read: %d bytes\n", (int) read(filefd, sp.iFrame, sp.size)); close(filefd); if ((ioctl(fd, VIDEO_STILLPICTURE, &sp) < 0)) { @@ -99,5 +100,3 @@ next_pic: return 0; } - - -- cgit v1.2.3