diff options
author | etobi <git@e-tobi.net> | 2013-09-03 09:48:41 +0200 |
---|---|---|
committer | etobi <git@e-tobi.net> | 2013-09-03 09:48:41 +0200 |
commit | ab959d7b4194715870128e616b8e29d4a101e488 (patch) | |
tree | 61a746231d30817be73416a7d67763fd677a1042 /test/test_stillimage.c | |
parent | 6b350466c4902c5b137e0efaf1d189128a7f18f5 (diff) | |
download | linux-dvb-apps-ab959d7b4194715870128e616b8e29d4a101e488.tar.gz |
Imported Upstream version 1.1.1+rev1207upstream/1.1.1+rev1207
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; } - - |