Michael Niedermayer
39a7ded22d
tools/ffhash: read errno before calling functions which might change it
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Nicolas George
73c4b6ce4b
tools/ffhash: implement base64 output.
...
Also fix usage string: the algorithm is not optional.
11 years ago
Nicolas George
3926a30b58
tools/ffhash: use av_hash_final_hex().
11 years ago
Alex Smith
2599a62fbb
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>
11 years ago
Michael Niedermayer
c1075d6af7
tools/ffhash: close file handle on error
...
Fixes CID1026768
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
James Almer
54372848f3
tools/ffhash: Use O_BINARY when available
...
This fixes reading files in Windows
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
James Almer
b22f96b736
Rename ffadler to ffhash and expand it using the generic hash API
...
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
d9cb1e0e15
ffadler: fix duplicate \n on errors
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
a11593189b
ffadler: add multifile support
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
3d66ce17b7
tools: Add adler32 checksum tool
...
This is about 6 times faster than md5sum on linux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago