]> git.sesse.net Git - ffmpeg/commit
lagarith: pad RGB buffer by 1 byte.
authorRonald S. Bultje <rsbultje@gmail.com>
Fri, 3 Aug 2012 03:46:09 +0000 (20:46 -0700)
committerRonald S. Bultje <rsbultje@gmail.com>
Fri, 3 Aug 2012 18:09:17 +0000 (11:09 -0700)
commit98d0d19208959766a58f13dd6a678d1f765a26ac
tree6b2794bab449252d1c2bb64d6b58f4ba3cac758f
parentda6505ad2fc8ef045401a3d9f980586ac5cf808c
lagarith: pad RGB buffer by 1 byte.

For left HFYU prediction, we predict from the buffer buf+1 using 8- or
16-byte reads. This means that aligning the buffer by 16 bytes is in
itself not sufficient, because if the width itself is 16- or 8-byte
aligned, the buffer will not be padded, and thus a read of size 16 at
buf+1 will overflow boundaries at the right edge. Padding the buffer by
1 byte is sufficient to not overflow its boundaries.

Fixes bug 342.
libavcodec/lagarith.c