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

lavfi/volume: fix NULL reference in filter_frame()

Fix crash.
This commit is contained in:
Stefano Sabatini 2013-12-25 19:13:23 +01:00
parent 1b4da43ce0
commit baeda2bf92

View File

@ -387,7 +387,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
av_frame_free(&buf); av_frame_free(&buf);
end: 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); return ff_filter_frame(outlink, out_buf);
} }