diff options
-rw-r--r-- | libavfilter/af_afade.c | 2 | ||||
-rw-r--r-- | 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++) |