diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2006-06-25 17:37:12 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2006-06-25 17:37:12 +0000 |
commit | f3a30e3a9c87a2d8350c4d8d2387be18dbd1cf02 (patch) | |
tree | b1e891db6479e13f5caaeaf2af9c4877a30885ab /libavformat/utils.c | |
parent | 521f258701c6e7f60a10ec73ea7e68d060b9ddb2 (diff) | |
download | ffmpeg-f3a30e3a9c87a2d8350c4d8d2387be18dbd1cf02.tar.gz |
cleanup patch from Diego Pettenò <flameeyes@gentoo.org>
Originally committed as revision 5526 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 5a3af68e74..51489a3a48 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -26,6 +26,10 @@ * Various utility functions for using ffmpeg library. */ +static void av_frac_init(AVFrac *f, int64_t val, int64_t num, int64_t den); +static void av_frac_add(AVFrac *f, int64_t incr); +static void av_frac_set(AVFrac *f, int64_t val); + /** head of registered input format linked list. */ AVInputFormat *first_iformat = NULL; /** head of registered output format linked list. */ @@ -3147,7 +3151,7 @@ void av_set_pts_info(AVStream *s, int pts_wrap_bits, * @param num must be >= 0 * @param den must be >= 1 */ -void av_frac_init(AVFrac *f, int64_t val, int64_t num, int64_t den) +static void av_frac_init(AVFrac *f, int64_t val, int64_t num, int64_t den) { num += (den >> 1); if (num >= den) { @@ -3162,7 +3166,7 @@ void av_frac_init(AVFrac *f, int64_t val, int64_t num, int64_t den) /** * Set f to (val + 0.5). */ -void av_frac_set(AVFrac *f, int64_t val) +static void av_frac_set(AVFrac *f, int64_t val) { f->val = val; f->num = f->den >> 1; @@ -3174,7 +3178,7 @@ void av_frac_set(AVFrac *f, int64_t val) * @param f fractional number * @param incr increment, can be positive or negative */ -void av_frac_add(AVFrac *f, int64_t incr) +static void av_frac_add(AVFrac *f, int64_t incr) { int64_t num, den; |