webp: ensure that each transform is only used once
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Thu, 5 Mar 2015 21:48:28 +0000 (22:48 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sat, 21 Mar 2015 08:45:30 +0000 (09:45 +0100)
commitb7c8a1fbbd0b6ac0b096ef0402dee440ff27ecb7
tree1e6dad521c55c1702c427407ea546d064755ea03
parent9cef65434e5e5ffbd4a856ce7ae9c067dec039b7
webp: ensure that each transform is only used once

According to the WebP Lossless Bitstream Specification
"each transform is allowed to be used only once".

If a transform is more than once this can lead to memory
corruption.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
(cherry picked from commit 30e6abd1a8cc4fd5daf2e23ad2e768862c39e975)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/webp.c