From 2599a62fbb31a340d106774b8b3dd84169f92895 Mon Sep 17 00:00:00 2001 From: Alex Smith Date: Tue, 24 Sep 2013 09:16:32 -0400 Subject: ffhash: Change size to an int This fixes compilation with MSVC and ICL, and makes ffhash consistent with how the rest of the codebase uses read(). Reviewed-by: Derek Buitenhuis Signed-off-by: Michael Niedermayer --- tools/ffhash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/ffhash.c') diff --git a/tools/ffhash.c b/tools/ffhash.c index 00a2872717..086d48a7ab 100644 --- a/tools/ffhash.c +++ b/tools/ffhash.c @@ -87,7 +87,7 @@ static int check(char *file) av_hash_init(hash); for (;;) { - ssize_t size = read(fd, buffer, SIZE); + int size = read(fd, buffer, SIZE); if (size < 0) { close(fd); finish(); -- cgit v1.2.3