libavcodec/webp: treat out-of-bound palette index as translucent black
authorPascal Massimino <pascal.massimino@gmail.com>
Tue, 16 Sep 2014 15:01:07 +0000 (17:01 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 19 Sep 2014 14:37:10 +0000 (16:37 +0200)
commitb7f27199513752999d07fae76876fd50a4862d81
treef5cb49a139672bbd1e083936bd60f6ab2623977e
parentdc4e34a2f05917deae2c6e68783dba089da5eb8d
libavcodec/webp: treat out-of-bound palette index as translucent black

See https://code.google.com/p/webp/issues/detail?id=206
for a description of the problem/fix.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This patch makes the decoder follow the recommendation of the spec.
There is some disagreement (see "[FFmpeg-devel] [PATCH]: libavcodec/webp")
about what would be best to be written in the spec, so in case the spec
is changed again, this potentially would need to be amended or reverted
(cherry picked from commit 4fd21d58a72c38ab63c3a4483b420db260fa7b8d)

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