]> git.sesse.net Git - ffmpeg/commit
lavfi/alphaextract: fix assignment of invalid size value to memcpy in case linesize < 0
authorStefano Sabatini <stefasab@gmail.com>
Fri, 7 Dec 2012 17:51:33 +0000 (18:51 +0100)
committerStefano Sabatini <stefasab@gmail.com>
Fri, 7 Dec 2012 18:43:19 +0000 (19:43 +0100)
commit130c6497d2e511d1363cb51ddf68dc9cc2c2f987
tree0631d162ee694d6e4bf56d29d8ee49531d821233
parentc3ad91a3d77c97e029b42d1f0e511874342bfb92
lavfi/alphaextract: fix assignment of invalid size value to memcpy in case linesize < 0

Fix crash, for example in the command:
ffmpeg -f image2 -vcodec pgmyuv -i tests/vsynth1/%02d.pgm \
  -vf "[in]format=yuv420p,split,alphamerge,split[o3][o4];
       [o4]vflip,alphaextract[alpha];[o3][alpha]alphamerge[out]" \
  -vcodec rawvideo -f nut md5:
libavfilter/vf_alphaextract.c