avcodec/a64multienc: fix use of uninitialized values in to_meta_with_crop
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sun, 22 Feb 2015 19:48:38 +0000 (20:48 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 23 Feb 2015 12:47:55 +0000 (13:47 +0100)
commit1a8f9f0e589892f3d2d6f08e8fb3592d709bfb96
treef57ddc0b5818fe79e691afc3581d4ee002b3b811
parent91ced1608cf4e2a8f8c6b26884a39a368c8cde79
avcodec/a64multienc: fix use of uninitialized values in to_meta_with_crop

Averaging over 2 pixels doesn't work correctly for the last pixel, because the
rest of the buffer is not initialized.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 87513d654546a99f8ddb045ca4fa5d33778a617e)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/a64multienc.c