svq1: do not modify the input packet
authorAnton Khirnov <anton@khirnov.net>
Sun, 3 Aug 2014 08:14:48 +0000 (10:14 +0200)
committerAnton Khirnov <anton@khirnov.net>
Wed, 6 Aug 2014 18:59:27 +0000 (18:59 +0000)
commit7b588bb691644e1b3c168b99accf74248a24e3cf
tree496d8b8c8705a81f2deab6ae6b23287f04f7e94b
parentc7d9b473e28238d4a4ef1b7e8b42c1cca256da36
svq1: do not modify the input packet

The input data must remain constant, make a copy instead. This is in
theory a performance hit, but since I failed to find any samples
using this feature, this should not matter in practice.

Also, check the size of the header, avoiding invalid reads on truncated
data.

CC:libav-stable@libav.org
libavcodec/svq1dec.c