Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2013-12-25 22:13:23 +0400
committerStefano Sabatini <stefasab@gmail.com>2013-12-25 22:13:23 +0400
commitbaeda2bf92a5de97e497f13ecb04025e27f9be1a (patch)
tree5e73de69e0da8ec7f4f8405e82f0b99d8700d85f /libavfilter/af_volume.c
parent1b4da43ce02452843a1e9bb976da1a39e18a945c (diff)
lavfi/volume: fix NULL reference in filter_frame()
Fix crash.
Diffstat (limited to 'libavfilter/af_volume.c')
-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);
}