[FFmpeg-devel] [PATCH] Rename ffadler to ffhash and expand it using the generic hash API
Michael Niedermayer
michaelni at gmx.at
Tue May 14 11:08:26 CEST 2013
On Tue, May 14, 2013 at 05:41:05AM -0300, James Almer wrote:
> On 14/05/13 3:54 AM, James Almer wrote:
> > Signed-off-by: James Almer <jamrial at gmail.com>
> > ---
> > libavutil/Makefile | 2 +-
> > tools/{ffadler.c => ffhash.c} | 63 +++++++++++++++++++++++++++++++++++--------
> > 2 files changed, 53 insertions(+), 12 deletions(-)
> > rename tools/{ffadler.c => ffhash.c} (55%)
>
> I should mention a few things.
> Adler32 is giving different results now because it's initialized with 0
> in hash.c instead of 1 as it used to be in ffadler. Also, AV_WL32() in
> av_hash_final() is making it print in reverse.
adler must be initialized with a non zero value otherwise the hash
does not work correctly. For example {0} and {0,0} would give the same
checksum
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
The real ebay dictionary, page 1
"Used only once" - "Some unspecified defect prevented a second use"
"In good condition" - "Can be repaird by experienced expert"
"As is" - "You wouldnt want it even if you were payed for it, if you knew ..."
-------------- 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/20130514/bfb7b3ed/attachment.asc>
More information about the ffmpeg-devel
mailing list