summaryrefslogtreecommitdiff
authorMichael Niedermayer <michaelni@gmx.at>2012-12-23 03:48:36 (GMT)
committer Michael Niedermayer <michaelni@gmx.at>2012-12-23 03:55:14 (GMT)
commitf9d8658d67cfb478e5e36ce1d2795eabdb201bcb (patch)
tree3ed2cf37aa698e3765a52f51a95d9a1d85e57245
parentca9eb9305aa21c7d579b29c6499d2a50c88aab47 (diff)
downloadffmpeg-f9d8658d67cfb478e5e36ce1d2795eabdb201bcb.zip
ffmpeg-f9d8658d67cfb478e5e36ce1d2795eabdb201bcb.tar.gz
ffmpeg-f9d8658d67cfb478e5e36ce1d2795eabdb201bcb.tar.bz2
libpostproc: fix leak of 2kb
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat
-rw-r--r--libpostproc/postprocess.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c
index afe3f13..21a16e9 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);