Browse Source

avfilter/af_afftfilt: Set last_expr to the default

This fixes a null pointer dereferece
Fixes: CID1351346

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.0
Michael Niedermayer 10 years ago
parent
commit
f89bc661b4
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavfilter/af_afftfilt.c

+ 2
- 1
libavfilter/af_afftfilt.c View File

@@ -94,7 +94,8 @@ static int config_input(AVFilterLink *inlink)
char *saveptr = NULL;
int ret = 0, ch, i;
float overlap;
char *args, *last_expr = NULL;
char *args;
const char *last_expr = "1";

s->fft = av_fft_init(s->fft_bits, 0);
s->ifft = av_fft_init(s->fft_bits, 1);


Loading…
Cancel
Save