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, 3 Oct 2014 01:40:59 +0000 (03:40 +0200)
commit4a4e30a6d87a0c232a789b3f5c0d6520a3e50014
tree098152f52df7b2b345204205d5b4bb100df00e3e
parent1c733a440aebcea33365713cb1316023f72badc1
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