mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 16:22:37 +00:00
Merge commit 'dcc7e4bf1d0913123bfafbc58bf47bd41dd5848d'
* commit 'dcc7e4bf1d0913123bfafbc58bf47bd41dd5848d': af_resample: preserve frame properties Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
fc10ed2cac
@ -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) -
|
||||
|
Loading…
Reference in New Issue
Block a user