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:33:05 +0000 (16:33 +0200)
commit4fd21d58a72c38ab63c3a4483b420db260fa7b8d
treed1ccabe211e3a960fd1288c33081e0cbb448dc46
parent59af5383c18c8cf3fe2a4b5cc1ebf2f3300bdfe5
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
libavcodec/webp.c