[FFmpeg-devel] [PATCH] Accept "-" for stdin input for tiny_psnr
Michael Niedermayer
michaelni
Fri Jul 9 15:49:41 CEST 2010
On Fri, Jul 09, 2010 at 12:32:07AM +0200, Vitor Sessak wrote:
> $subj
>
> -Vitor
> tiny_psnr.c | 7 +++++++
> 1 file changed, 7 insertions(+)
> d7304dc52adbc194b48f1e0ad381f9adcc724288 psnr_stdin.diff
no strong oppinon, but why?
/dev/stdin isnt good?
> Index: tests/tiny_psnr.c
> ===================================================================
> --- tests/tiny_psnr.c (revision 24077)
> +++ tests/tiny_psnr.c (working copy)
> @@ -22,6 +22,7 @@
> #include <stdlib.h>
> #include <inttypes.h>
> #include <assert.h>
> +#include <string.h>
>
> #define FFMIN(a,b) ((a) > (b) ? (b) : (a))
> #define F 100
> @@ -121,8 +122,14 @@
> return -1;
> }
>
> + if(strcmp(argv[1], "-"))
> f[0]= fopen(argv[1], "rb");
> + else
{}
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
I wish the Xiph folks would stop pretending they've got something they
do not. Somehow I fear this will remain a wish. -- M?ns Rullg?rd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100709/8ff00aac/attachment.pgp>
More information about the ffmpeg-devel
mailing list