From 6fcb4ae1d81dd104598001f55c80864c08d848af Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Wed, 3 Apr 2013 11:10:00 +0000 Subject: [PATCH] lavfi/afade * biquads: call av_frame_copy_props() Signed-off-by: Paul B Mahol --- libavfilter/af_afade.c | 2 +- libavfilter/af_biquads.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/af_afade.c b/libavfilter/af_afade.c index 1134849282..7f68327576 100644 --- a/libavfilter/af_afade.c +++ b/libavfilter/af_afade.c @@ -250,7 +250,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 ((!afade->type && (cur_sample + nb_samples < afade->start_sample)) || diff --git a/libavfilter/af_biquads.c b/libavfilter/af_biquads.c index a3acd041c7..2db0e02f35 100644 --- a/libavfilter/af_biquads.c +++ b/libavfilter/af_biquads.c @@ -406,7 +406,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); } for (ch = 0; ch < av_frame_get_channels(buf); ch++)