summaryrefslogtreecommitdiff
path: root/libavdevice/fbdev.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-08-05 23:25:27 +0200
committerClément Bœsch <ubitux@gmail.com>2012-08-06 00:04:36 +0200
commit16dc5f20505d39042d06bc4b09a01e8a4558fa2b (patch)
tree774929bc39ffafaa20d7e95d5753ba920066c2c4 /libavdevice/fbdev.c
parentad55244c9674bc52f383a967e0d1502e8a8928e9 (diff)
Replace various inlined inverse AVRational with av_inv_q().
Diffstat (limited to 'libavdevice/fbdev.c')
-rw-r--r--libavdevice/fbdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/fbdev.c b/libavdevice/fbdev.c
index 93f7ce3763..6d6bff5d0a 100644
--- a/libavdevice/fbdev.c
+++ b/libavdevice/fbdev.c
@@ -164,7 +164,7 @@ static av_cold int fbdev_read_header(AVFormatContext *avctx)
st->codec->width = fbdev->width;
st->codec->height = fbdev->height;
st->codec->pix_fmt = pix_fmt;
- st->codec->time_base = (AVRational){fbdev->framerate_q.den, fbdev->framerate_q.num};
+ st->codec->time_base = av_inv_q(fbdev->framerate_q);
st->codec->bit_rate =
fbdev->width * fbdev->height * fbdev->bytes_per_pixel * av_q2d(fbdev->framerate_q) * 8;