summaryrefslogtreecommitdiff
path: root/libavfilter/af_volume.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-03-29 12:11:24 +0100
committerClément Bœsch <ubitux@gmail.com>2013-03-31 11:58:20 +0200
commit4dae804d3c6d2886fa6f2b86c0bf7b1d8fce0c91 (patch)
treed0f33de858ff145e49648501d74ea4b8a88e5316 /libavfilter/af_volume.c
parenteb054a9693629b013b3472b4f0b2a888031542e4 (diff)
lavfi/volume: use copy props helper instead of incomplete manual code.
Diffstat (limited to 'libavfilter/af_volume.c')
-rw-r--r--libavfilter/af_volume.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_volume.c b/libavfilter/af_volume.c
index 447e8d57fe..0dccac8072 100644
--- a/libavfilter/af_volume.c
+++ b/libavfilter/af_volume.c
@@ -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) {