summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavfilter/af_volume.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_volume.c b/libavfilter/af_volume.c
index 454d46245d..269a2a527a 100644
--- a/libavfilter/af_volume.c
+++ b/libavfilter/af_volume.c
@@ -387,7 +387,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
av_frame_free(&buf);
end:
- vol->var_values[VAR_NB_CONSUMED_SAMPLES] += buf->nb_samples;
+ vol->var_values[VAR_NB_CONSUMED_SAMPLES] += out_buf->nb_samples;
return ff_filter_frame(outlink, out_buf);
}