[FFmpeg-cvslog] lavfi/af_amerge: 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:43 2013 +0100| [bf9908c62746ae5bb24f7cac428ff3dd73bdc375] | committer: Nicolas George

lavfi/af_amerge: use av_make_q.

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

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

diff --git a/libavfilter/af_amerge.c b/libavfilter/af_amerge.c
index 82b694b..591d672 100644
--- a/libavfilter/af_amerge.c
+++ b/libavfilter/af_amerge.c
@@ -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;



More information about the ffmpeg-cvslog mailing list