ffhash: Change size to an int
authorAlex Smith <alex.smith@warpsharp.info>
Tue, 24 Sep 2013 13:16:32 +0000 (09:16 -0400)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 24 Sep 2013 14:29:18 +0000 (16:29 +0200)
This fixes compilation with MSVC and ICL, and makes ffhash consistent
with how the rest of the codebase uses read().

Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tools/ffhash.c

index 00a2872..086d48a 100644 (file)
@@ -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();