Commit fc10ed2c authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'dcc7e4bf'

* commit 'dcc7e4bf':
  af_resample: preserve frame properties
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 70a25587 dcc7e4bf
......@@ -251,6 +251,14 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
if (ret > 0) {
out->nb_samples = ret;
ret = av_frame_copy_props(out, in);
if (ret < 0) {
av_frame_free(&out);
goto fail;
}
out->sample_rate = outlink->sample_rate;
if (in->pts != AV_NOPTS_VALUE) {
out->pts = av_rescale_q(in->pts, inlink->time_base,
outlink->time_base) -
......
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