Skip to content

Commit

Permalink
libpostproc: fix leak of 2kb
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
  • Loading branch information
michaelni committed Dec 23, 2012
1 parent ca9eb93 commit f9d8658
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libpostproc/postprocess.c
Expand Up @@ -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);
Expand Down

0 comments on commit f9d8658

Please sign in to comment.