]> git.sesse.net Git - ffmpeg/commit
vf_lut: add plane validity check in draw_slice()
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Sat, 2 Jul 2011 13:06:02 +0000 (15:06 +0200)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sat, 2 Jul 2011 13:21:05 +0000 (15:21 +0200)
commit2b550beb2299e30d5fc13596c619457c13b49d5f
tree44a973100301e528b0b5818eff7c226d11be2a56
parent25119a7f082ba2432df528f70348f5bd83aa8c07
vf_lut: add plane validity check in draw_slice()

The value for inpic->data[plane] with plane >=4 is undefined, and it
will contain in general random data. This change adds a check for
exiting the loop when plane reaches the value 4.

Fix crash (occurring for example with: format=rgba,lut).
libavfilter/vf_lut.c