Fix passing of unaligned addresses to dsputil diff_bytes() by
authorJeff Downs <heydowns@borg.com>
Sat, 23 May 2009 19:37:01 +0000 (19:37 +0000)
committerJeff Downs <heydowns@borg.com>
Sat, 23 May 2009 19:37:01 +0000 (19:37 +0000)
commitfdb699de62a7fdeb14a1a53a7813a3e8dcad12c1
tree6fddf3cd660a8867b6c2e038d090bdead228179a
parentaa5cfdfb4f11519c338372f5a52137c2e65a1a11
Fix passing of unaligned addresses to dsputil diff_bytes() by
changeing calls to sub_left_prediction such that
the source frame data pointers are no longer offset to skip the initial
elements. This keeps them properly aligned for the subsequent call to diff_bytes.
Changes encoding offset to compensate.

Mailing list thread:
https://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2009-May/069952.html

Originally committed as revision 18919 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/huffyuv.c