lavfi/avf_concat: use av_make_q.
authorNicolas George <george@nsup.org>
Tue, 31 Dec 2013 14:55:44 +0000 (15:55 +0100)
committerNicolas George <george@nsup.org>
Sun, 19 Jan 2014 16:12:50 +0000 (17:12 +0100)
libavfilter/avf_concat.c

index c211dc4..18f373c 100644 (file)
@@ -174,7 +174,7 @@ static int push_frame(AVFilterContext *ctx, unsigned in_no, AVFrame *buf)
     if (inlink->sample_rate)
         /* use number of audio samples */
         in->pts += av_rescale_q(buf->nb_samples,
-                                (AVRational){ 1, inlink->sample_rate },
+                                av_make_q(1, inlink->sample_rate),
                                 outlink->time_base);
     else if (in->nb_frames >= 2)
         /* use mean duration */