diff options
author | Clément Bœsch <ubitux@gmail.com> | 2012-08-06 01:25:27 +0400 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-08-06 02:04:36 +0400 |
commit | 16dc5f20505d39042d06bc4b09a01e8a4558fa2b (patch) | |
tree | 774929bc39ffafaa20d7e95d5753ba920066c2c4 /libavformat/r3d.c | |
parent | ad55244c9674bc52f383a967e0d1502e8a8928e9 (diff) |
Replace various inlined inverse AVRational with av_inv_q().
Diffstat (limited to 'libavformat/r3d.c')
-rw-r--r-- | libavformat/r3d.c | 5 |
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); |