summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Smith <alex.smith@warpsharp.info>2013-09-24 09:16:32 -0400
committerMichael Niedermayer <michaelni@gmx.at>2013-09-24 16:29:18 +0200
commit2599a62fbb31a340d106774b8b3dd84169f92895 (patch)
treee8ce0676014b672d09d64208d80128bf2f5675df
parent4fdf2fa94a3f4658073185f399d6c9c3e5b47272 (diff)
downloadffmpeg-streaming-2599a62fbb31a340d106774b8b3dd84169f92895.zip
ffmpeg-streaming-2599a62fbb31a340d106774b8b3dd84169f92895.tar.gz
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>
-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();
OpenPOWER on IntegriCloud