[FFmpeg-cvslog] lavfi/avf_concat: use av_make_q.

Nicolas George git at videolan.org
Sun Jan 19 17:56:56 CET 2014


ffmpeg | branch: master | Nicolas George <george at nsup.org> | Tue Dec 31 15:55:44 2013 +0100| [c4b7ad324b0492962752c85efabf54a73e28b559] | committer: Nicolas George

lavfi/avf_concat: use av_make_q.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c4b7ad324b0492962752c85efabf54a73e28b559
---

 libavfilter/avf_concat.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/avf_concat.c b/libavfilter/avf_concat.c
index c211dc4..18f373c 100644
--- a/libavfilter/avf_concat.c
+++ b/libavfilter/avf_concat.c
@@ -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 */



More information about the ffmpeg-cvslog mailing list