diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2013-12-25 19:13:23 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-12-25 19:13:23 +0100 |
commit | baeda2bf92a5de97e497f13ecb04025e27f9be1a (patch) | |
tree | 5e73de69e0da8ec7f4f8405e82f0b99d8700d85f /libavfilter | |
parent | 1b4da43ce02452843a1e9bb976da1a39e18a945c (diff) | |
download | ffmpeg-streaming-baeda2bf92a5de97e497f13ecb04025e27f9be1a.zip ffmpeg-streaming-baeda2bf92a5de97e497f13ecb04025e27f9be1a.tar.gz |
lavfi/volume: fix NULL reference in filter_frame()
Fix crash.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_volume.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_volume.c b/libavfilter/af_volume.c index 454d462..269a2a5 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); } |