Commit 6fcb4ae1 authored by Paul B Mahol's avatar Paul B Mahol

lavfi/afade * biquads: call av_frame_copy_props()

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 0ab10f69
...@@ -250,7 +250,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf) ...@@ -250,7 +250,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
out_buf = ff_get_audio_buffer(inlink, nb_samples); out_buf = ff_get_audio_buffer(inlink, nb_samples);
if (!out_buf) if (!out_buf)
return AVERROR(ENOMEM); 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)) || if ((!afade->type && (cur_sample + nb_samples < afade->start_sample)) ||
......
...@@ -406,7 +406,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf) ...@@ -406,7 +406,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
out_buf = ff_get_audio_buffer(inlink, nb_samples); out_buf = ff_get_audio_buffer(inlink, nb_samples);
if (!out_buf) if (!out_buf)
return AVERROR(ENOMEM); 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++) for (ch = 0; ch < av_frame_get_channels(buf); ch++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment