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

index 786f4f6..459ae46 100644 (file)
@@ -113,7 +113,7 @@ static int config_props(AVFilterLink *outlink)
     outlink->h = tile->h * inlink->h + total_margin_h;
     outlink->sample_aspect_ratio = inlink->sample_aspect_ratio;
     outlink->frame_rate = av_mul_q(inlink->frame_rate,
-                                   (AVRational){ 1, tile->nb_frames });
+                                   av_make_q(1, tile->nb_frames));
     ff_draw_init(&tile->draw, inlink->format, 0);
     ff_draw_color(&tile->draw, &tile->blank, tile->rgba_color);