[FFmpeg-cvslog] lavfi/volume: fix NULL reference in filter_frame()
Stefano Sabatini
git at videolan.org
Wed Dec 25 19:14:55 CET 2013
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Wed Dec 25 19:13:23 2013 +0100| [baeda2bf92a5de97e497f13ecb04025e27f9be1a] | committer: Stefano Sabatini
lavfi/volume: fix NULL reference in filter_frame()
Fix crash.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=baeda2bf92a5de97e497f13ecb04025e27f9be1a
---
libavfilter/af_volume.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
}
More information about the ffmpeg-cvslog
mailing list