Replace various inlined inverse AVRational with av_inv_q().

This commit is contained in:
Clément Bœsch
2012-08-05 23:25:27 +02:00
parent ad55244c96
commit 16dc5f2050
10 changed files with 12 additions and 13 deletions

View File

@@ -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;