[FFmpeg-devel] [PATCH] ffhash: Change size to an int

Alex Smith alex.smith at warpsharp.info
Tue Sep 24 15:16:32 CEST 2013


This fixes compilation with MSVC and ICL, and makes ffhash consistent
with how the rest of the codebase uses read().
---
 tools/ffhash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/ffhash.c b/tools/ffhash.c
index 00a2872..086d48a 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();
-- 
1.8.4.msysgit.0



More information about the ffmpeg-devel mailing list