diff options
Diffstat (limited to 'apps/codecs/libwmavoice/libavutil/mathematics.c')
-rw-r--r-- | apps/codecs/libwmavoice/libavutil/mathematics.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/codecs/libwmavoice/libavutil/mathematics.c b/apps/codecs/libwmavoice/libavutil/mathematics.c index c6851cb755..c4fbe3b7bc 100644 --- a/apps/codecs/libwmavoice/libavutil/mathematics.c +++ b/apps/codecs/libwmavoice/libavutil/mathematics.c | |||
@@ -130,6 +130,7 @@ int64_t av_rescale(int64_t a, int64_t b, int64_t c){ | |||
130 | return av_rescale_rnd(a, b, c, AV_ROUND_NEAR_INF); | 130 | return av_rescale_rnd(a, b, c, AV_ROUND_NEAR_INF); |
131 | } | 131 | } |
132 | 132 | ||
133 | #if 0 | ||
133 | int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq){ | 134 | int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq){ |
134 | int64_t b= bq.num * (int64_t)cq.den; | 135 | int64_t b= bq.num * (int64_t)cq.den; |
135 | int64_t c= cq.num * (int64_t)bq.den; | 136 | int64_t c= cq.num * (int64_t)bq.den; |
@@ -143,6 +144,7 @@ int av_compare_ts(int64_t ts_a, AVRational tb_a, int64_t ts_b, AVRational tb_b){ | |||
143 | if (av_rescale_rnd(ts_b, b, a, AV_ROUND_DOWN) < ts_a) return 1; | 144 | if (av_rescale_rnd(ts_b, b, a, AV_ROUND_DOWN) < ts_a) return 1; |
144 | return 0; | 145 | return 0; |
145 | } | 146 | } |
147 | #endif | ||
146 | 148 | ||
147 | int64_t av_compare_mod(uint64_t a, uint64_t b, uint64_t mod){ | 149 | int64_t av_compare_mod(uint64_t a, uint64_t b, uint64_t mod){ |
148 | int64_t c= (a-b) & (mod-1); | 150 | int64_t c= (a-b) & (mod-1); |