1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

lavfi/af_amerge: use av_make_q.

This commit is contained in:
Nicolas George 2013-12-31 15:55:43 +01:00
parent 3532dd52c5
commit bf9908c627

View File

@ -259,7 +259,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
outbuf->pts = inbuf[0]->pts == AV_NOPTS_VALUE ? AV_NOPTS_VALUE :
inbuf[0]->pts +
av_rescale_q(am->in[0].pos,
(AVRational){ 1, ctx->inputs[0]->sample_rate },
av_make_q(1, ctx->inputs[0]->sample_rate),
ctx->outputs[0]->time_base);
outbuf->nb_samples = nb_samples;