Browse Source

lavfi/volume: use copy props helper instead of incomplete manual code.

tags/n2.0
Clément Bœsch 13 years ago
parent
commit
4dae804d3c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/af_volume.c

+ 1
- 1
libavfilter/af_volume.c View File

@@ -234,7 +234,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
out_buf = ff_get_audio_buffer(inlink, nb_samples);
if (!out_buf)
return AVERROR(ENOMEM);
out_buf->pts = buf->pts;
av_frame_copy_props(out_buf, buf);
}

if (vol->precision != PRECISION_FIXED || vol->volume_i > 0) {


Loading…
Cancel
Save