lcl: don't overwrite input memory.
authorRonald S. Bultje <rsbultje@gmail.com>
Wed, 22 Feb 2012 22:22:56 +0000 (14:22 -0800)
committerRonald S. Bultje <rsbultje@gmail.com>
Thu, 23 Feb 2012 18:31:46 +0000 (10:31 -0800)
commit01cb62aba2503b4173f101154f9f840f04f9c7f8
tree777f4b3e98bac9d0061e60c879f4ffa9bc0026ca
parent1d8c4af396b6ed84c84b5ebf0bf1163c4a7a3017
lcl: don't overwrite input memory.

If the PNG filter is enabled, a PNG-style filter will run over the
input buffer, writing into the buffer. Therefore, if no zlib compression
was used, ensure that we copy into a temporary buffer, otherwise we
overwrite user-provided input data.
libavcodec/lcldec.c