[FFmpeg-devel] [PATCH] Rename ffadler to ffhash and expand it using the generic hash API

Michael Niedermayer michaelni at gmx.at
Wed May 15 15:38:12 CEST 2013


On Wed, May 15, 2013 at 04:35:40AM -0300, James Almer wrote:
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
>  libavutil/Makefile            |  2 +-
>  tools/{ffadler.c => ffhash.c} | 79 +++++++++++++++++++++++++++++++++++++------
>  2 files changed, 70 insertions(+), 11 deletions(-)
>  rename tools/{ffadler.c => ffhash.c} (49%)

[...]

> +static void finish(void)
> +{
> +    int i, len = av_hash_get_size(hash);
> +
> +    printf("%s=0x", av_hash_get_name(hash));
> +    av_hash_final(hash, res);
> +    for (i = 0; i < len; i++)
> +        printf("%02"PRIx8, res[i]);

%02x

also, the values returned change

echo this | tools/ffhash adler32
adler32=0xc2010f06

echo this | tools/ffadler
A32=0x061401c3

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you think the mosad wants you dead since a long time then you are either
wrong or dead since a long time.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130515/688d45b1/attachment.asc>


More information about the ffmpeg-devel mailing list