imgutils: initialize palette padding bytes in av_image_alloc
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 12 May 2015 19:45:42 +0000 (21:45 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 13 May 2015 01:58:08 +0000 (03:58 +0200)
commit51f64552853e16d72644308db53abee870aecfb9
treea66cc206b266cced3b3c09f00fd98b89758155bc
parenta7c0c79333fe30263b4729901a2a41ef8d2891f6
imgutils: initialize palette padding bytes in av_image_alloc

av_image_fill_pointers always aligns the palette, but the padding
bytes don't (and can't) get initialized in av_image_copy.

Thus initialize them in av_image_alloc.

This fixes 'Syscall param write(buf) points to uninitialised byte(s)'
valgrind warnings.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/imgutils.c