1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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 5f634480d1,
+10l to me.
This commit is contained in:
Stefano Sabatini 2013-01-22 12:18:52 +01:00
parent 379d03b0c9
commit 5b10c5e7e4

View File

@ -193,7 +193,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *insamples)
/* draw data in the buffer */
for (i = 0; i < nb_samples; i++) {
if (!outpicref) {
if (!showwaves->outpicref) {
showwaves->outpicref = outpicref =
ff_get_video_buffer(outlink, AV_PERM_WRITE|AV_PERM_ALIGN,
outlink->w, outlink->h);