aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/vfwcap.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/vfwcap.c
parentad55244c9674bc52f383a967e0d1502e8a8928e9 (diff)
downloadffmpeg-16dc5f20505d39042d06bc4b09a01e8a4558fa2b.tar.gz
Replace various inlined inverse AVRational with av_inv_q().
Diffstat (limited to 'libavdevice/vfwcap.c')
-rw-r--r--libavdevice/vfwcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/vfwcap.c b/libavdevice/vfwcap.c
index d8e32cec41..2809c56702 100644
--- a/libavdevice/vfwcap.c
+++ b/libavdevice/vfwcap.c
@@ -372,7 +372,7 @@ static int vfw_read_header(AVFormatContext *s)
goto fail;
codec = st->codec;
- codec->time_base = (AVRational){framerate_q.den, framerate_q.num};
+ codec->time_base = av_inv_q(framerate_q);
codec->codec_type = AVMEDIA_TYPE_VIDEO;
codec->width = bi->bmiHeader.biWidth;
codec->height = bi->bmiHeader.biHeight;