mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavfi/avf_concat: use av_make_q.
This commit is contained in:
parent
bf9908c627
commit
c4b7ad324b
@ -174,7 +174,7 @@ static int push_frame(AVFilterContext *ctx, unsigned in_no, AVFrame *buf)
|
|||||||
if (inlink->sample_rate)
|
if (inlink->sample_rate)
|
||||||
/* use number of audio samples */
|
/* use number of audio samples */
|
||||||
in->pts += av_rescale_q(buf->nb_samples,
|
in->pts += av_rescale_q(buf->nb_samples,
|
||||||
(AVRational){ 1, inlink->sample_rate },
|
av_make_q(1, inlink->sample_rate),
|
||||||
outlink->time_base);
|
outlink->time_base);
|
||||||
else if (in->nb_frames >= 2)
|
else if (in->nb_frames >= 2)
|
||||||
/* use mean duration */
|
/* use mean duration */
|
||||||
|
Loading…
Reference in New Issue
Block a user