Browse Source

avf_showwaves: fix null pointer dereference

Found-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.2
Michael Niedermayer 12 years ago
parent
commit
e4eebc2da9
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavfilter/avf_showwaves.c

+ 1
- 0
libavfilter/avf_showwaves.c View File

@@ -220,6 +220,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *insamples)
}
if (showwaves->buf_idx == showwaves->w)
push_frame(outlink);
outpicref = showwaves->outpicref;
}

avfilter_unref_buffer(insamples);


Loading…
Cancel
Save