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:
parent
1b4da43ce0
commit
baeda2bf92
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user