From 16dc5f20505d39042d06bc4b09a01e8a4558fa2b Mon Sep 17 00:00:00 2001 From: Clément Bœsch Date: Sun, 5 Aug 2012 23:25:27 +0200 Subject: Replace various inlined inverse AVRational with av_inv_q(). --- libavdevice/x11grab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavdevice/x11grab.c') diff --git a/libavdevice/x11grab.c b/libavdevice/x11grab.c index 6202bbc3f4..566889cb16 100644 --- a/libavdevice/x11grab.c +++ b/libavdevice/x11grab.c @@ -302,7 +302,7 @@ x11grab_read_header(AVFormatContext *s1) x11grab->frame_size = x11grab->width * x11grab->height * image->bits_per_pixel/8; x11grab->dpy = dpy; - x11grab->time_base = (AVRational){framerate.den, framerate.num}; + x11grab->time_base = av_inv_q(framerate); x11grab->time_frame = av_gettime() / av_q2d(x11grab->time_base); x11grab->x_off = x_off; x11grab->y_off = y_off; -- cgit v1.2.3