summaryrefslogtreecommitdiff
path: root/libavfilter/avf_showwaves.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-07-23 14:57:15 +0200
committerStefano Sabatini <stefasab@gmail.com>2012-07-23 15:10:19 +0200
commit7afd42d9f26be1e95f15cbcfa0e09308a6591036 (patch)
treeb15fcea50364a8b9e679b55c71779ed4a4450844 /libavfilter/avf_showwaves.c
parentcc12a94c364fca9c371c3e5da7a462655c7e1f2d (diff)
lavfi/showwaves: do not set on outlink->out_buf the sent video frame
The video frame reference is passed along the filterchain, and is not possessed anymore by the filter. If out_buf is not set to NULL, it will be freed by ff_end_frame() causing a crash.
Diffstat (limited to 'libavfilter/avf_showwaves.c')
-rw-r--r--libavfilter/avf_showwaves.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavfilter/avf_showwaves.c b/libavfilter/avf_showwaves.c
index 3939fe5046..96ed2c7ebc 100644
--- a/libavfilter/avf_showwaves.c
+++ b/libavfilter/avf_showwaves.c
@@ -206,7 +206,6 @@ static int filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamples)
av_rescale_q((p - (int16_t *)insamples->data[0]) / nb_channels,
(AVRational){ 1, inlink->sample_rate },
outlink->time_base);
- outlink->out_buf = outpicref;
linesize = outpicref->linesize[0];
memset(outpicref->data[0], 0, showwaves->h*linesize);
}