OSDN Git Service

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, 28 Nov 2014 17:44:37 +0000 (18:44 +0100)
commit5ecc4a644a1f5ee0ee677dd2db9560001d8c80c8
tree8ae4f489e45d8f3222b971496ddd24afe208c937
parent36ec1c2c5519044ef7adb1f2d43347d84b56f80b
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