[FFmpeg-cvslog] ffhash: Change size to an int

Alex Smith git at videolan.org
Tue Sep 24 16:45:30 CEST 2013


ffmpeg | branch: master | Alex Smith <alex.smith at warpsharp.info> | Tue Sep 24 09:16:32 2013 -0400| [2599a62fbb31a340d106774b8b3dd84169f92895] | committer: Michael Niedermayer

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 <derek.buitenhuis at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2599a62fbb31a340d106774b8b3dd84169f92895
---

 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();



More information about the ffmpeg-cvslog mailing list