[FFmpeg-devel] [PATCH]: libavcodec/webp

Pascal Massimino pascal.massimino at gmail.com
Thu Sep 18 08:45:17 CEST 2014


Hi,

the webp lossless doc was unclear regarding palette index falling out of
range.
See issue #206 [1] for the bug report.
The solution retained was to treat out-of-range index as color 0x00000000,
so we could keep the speed-up in libwebp (we use fake extra entries in the
cmap to handle out-of-bound values without the extra branch).

The doc was clarified (along with few other loose ends) in patch #71605 [2]
Attached is the fix for ffmpeg's webp decoder to treat out-of-bound index
as transparent-black instead of reporting an error.

note: the bug entry has a test webp file to exercise this feature/patch, in
case.

thanks!
/skal

[1] https://code.google.com/p/webp/issues/detail?id=206
[2] https://gerrit.chromium.org/gerrit/#/c/71605/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libavcodec-webp-treat-out-of-bound-palette-index-as-.patch
Type: application/octet-stream
Size: 1463 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140917/ef3ae3e5/attachment.obj>


More information about the ffmpeg-devel mailing list