Commit 5b10c5e7 authored by Stefano Sabatini's avatar Stefano Sabatini

lavfi/showwaves: fix check on showwaves->outpicref

outpicref is not always in synch with showwaves->outpicref, which is
changed as a side effect of the call to functions.

Fix regression introduced in 5f634480,
+10l to me.
parent 379d03b0
...@@ -193,7 +193,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *insamples) ...@@ -193,7 +193,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *insamples)
/* draw data in the buffer */ /* draw data in the buffer */
for (i = 0; i < nb_samples; i++) { for (i = 0; i < nb_samples; i++) {
if (!outpicref) { if (!showwaves->outpicref) {
showwaves->outpicref = outpicref = showwaves->outpicref = outpicref =
ff_get_video_buffer(outlink, AV_PERM_WRITE|AV_PERM_ALIGN, ff_get_video_buffer(outlink, AV_PERM_WRITE|AV_PERM_ALIGN,
outlink->w, outlink->h); outlink->w, outlink->h);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment