diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-12-23 04:48:36 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-23 04:55:14 +0100 |
commit | f9d8658d67cfb478e5e36ce1d2795eabdb201bcb (patch) | |
tree | 3ed2cf37aa698e3765a52f51a95d9a1d85e57245 | |
parent | ca9eb9305aa21c7d579b29c6499d2a50c88aab47 (diff) | |
download | ffmpeg-f9d8658d67cfb478e5e36ce1d2795eabdb201bcb.tar.gz |
libpostproc: fix leak of 2kb
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libpostproc/postprocess.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c index afe3f13c68..21a16e91b2 100644 --- a/libpostproc/postprocess.c +++ b/libpostproc/postprocess.c @@ -381,11 +381,10 @@ static inline void doHorizLowPass_C(uint8_t dst[], int stride, const PPContext * static inline void horizX1Filter(uint8_t *src, int stride, int QP) { int y; - static uint64_t *lut= NULL; - if(lut==NULL) + static uint64_t lut[256]; + if(!lut[255]) { int i; - lut = av_malloc(256*8); for(i=0; i<256; i++) { int v= i < 128 ? 2*i : 2*(i-256); |