diff options
Diffstat (limited to 'test/test_stillimage.c')
-rw-r--r-- | test/test_stillimage.c | 7 |
1 files changed, 3 insertions, 4 deletions
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 <time.h> #include <unistd.h> +#include <linux/types.h> #include <linux/dvb/video.h> @@ -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; } - - |