1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-29 16:23:10 +02:00

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>
This commit is contained in:
Alex Smith 2013-09-24 09:16:32 -04:00 committed by Michael Niedermayer
parent 4fdf2fa94a
commit 2599a62fbb

View File

@ -87,7 +87,7 @@ static int check(char *file)
av_hash_init(hash); av_hash_init(hash);
for (;;) { for (;;) {
ssize_t size = read(fd, buffer, SIZE); int size = read(fd, buffer, SIZE);
if (size < 0) { if (size < 0) {
close(fd); close(fd);
finish(); finish();