aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/r3d.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 /libavformat/r3d.c
parentad55244c9674bc52f383a967e0d1502e8a8928e9 (diff)
downloadffmpeg-16dc5f20505d39042d06bc4b09a01e8a4558fa2b.tar.gz
Replace various inlined inverse AVRational with av_inv_q().
Diffstat (limited to 'libavformat/r3d.c')
-rw-r--r--libavformat/r3d.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/r3d.c b/libavformat/r3d.c
index bd456baaab..f95f940dd7 100644
--- a/libavformat/r3d.c
+++ b/libavformat/r3d.c
@@ -141,8 +141,7 @@ static int r3d_read_rdvo(AVFormatContext *s, Atom *atom)
if (st->avg_frame_rate.num)
st->duration = av_rescale_q(r3d->video_offsets_count,
- (AVRational){st->avg_frame_rate.den,
- st->avg_frame_rate.num},
+ av_inv_q(st->avg_frame_rate),
st->time_base);
av_dlog(s, "duration %"PRId64"\n", st->duration);
@@ -370,7 +369,7 @@ static int r3d_seek(AVFormatContext *s, int stream_index, int64_t sample_time, i
return -1;
frame_num = av_rescale_q(sample_time, st->time_base,
- (AVRational){st->avg_frame_rate.den, st->avg_frame_rate.num});
+ av_inv_q(st->avg_frame_rate));
av_dlog(s, "seek frame num %d timestamp %"PRId64"\n",
frame_num, sample_time);