avcodec/pngenc: fix invalid read in sub filter.
authorClément Bœsch <u@pkh.me>
Sun, 23 Feb 2014 19:11:30 +0000 (20:11 +0100)
committerClément Bœsch <u@pkh.me>
Sun, 23 Feb 2014 19:40:52 +0000 (20:40 +0100)
commit57ec555e8ef3c5ef1d77d48dc7cc868e56ddadc9
tree3cc7e008e822aedd3a32920c3683e108e013db89
parent72e691314027b08955679319394dd0d8477973b7
avcodec/pngenc: fix invalid read in sub filter.

First pixel was computed based on invalid address read, and then
corrected by the following memcpy. After the commit, it's not computed
anymore, and memcpy fills the appropriate area.

Fixes Ticket #3387
libavcodec/pngenc.c