summaryrefslogtreecommitdiff
authorAlex Smith <alex.smith@warpsharp.info>2013-09-24 13:16:32 (GMT)
committer Michael Niedermayer <michaelni@gmx.at>2013-09-24 14:29:18 (GMT)
commit2599a62fbb31a340d106774b8b3dd84169f92895 (patch)
treee8ce0676014b672d09d64208d80128bf2f5675df
parent4fdf2fa94a3f4658073185f399d6c9c3e5b47272 (diff)
downloadffmpeg-2599a62fbb31a340d106774b8b3dd84169f92895.zip
ffmpeg-2599a62fbb31a340d106774b8b3dd84169f92895.tar.gz
ffmpeg-2599a62fbb31a340d106774b8b3dd84169f92895.tar.bz2
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@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat
-rw-r--r--tools/ffhash.c2
1 files changed, 1 insertions, 1 deletions
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();