Commit baeda2bf authored by Stefano Sabatini's avatar Stefano Sabatini

lavfi/volume: fix NULL reference in filter_frame()

Fix crash.
parent 1b4da43c
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment