Browse Source

lavfi/volume: fix NULL reference in filter_frame()

Fix crash.
tags/n2.2-rc1
Stefano Sabatini 12 years ago
parent
commit
baeda2bf92
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/af_volume.c

+ 1
- 1
libavfilter/af_volume.c View File

@@ -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…
Cancel
Save