[FFmpeg-cvslog] libpostproc: fix leak of 2kb
Michael Niedermayer
git at videolan.org
Sun Dec 23 05:41:44 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Dec 23 04:48:36 2012 +0100| [f9d8658d67cfb478e5e36ce1d2795eabdb201bcb] | committer: Michael Niedermayer
libpostproc: fix leak of 2kb
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f9d8658d67cfb478e5e36ce1d2795eabdb201bcb
---
libpostproc/postprocess.c | 5 ++---
1 file 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);
More information about the ffmpeg-cvslog
mailing list