Mercurial > libavformat.hg
changeset 1135:107f90e1551b libavformat
cleanup patch from Diego Petten <flameeyes@gentoo.org>
author | lu_zero |
---|---|
date | Sun, 25 Jun 2006 17:37:12 +0000 |
parents | 19ceddeafe2e |
children | d65cd7c3573e |
files | avformat.h utils.c |
diffstat | 2 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/avformat.h Sun Jun 25 12:46:01 2006 +0000 +++ b/avformat.h Sun Jun 25 17:37:12 2006 +0000 @@ -81,10 +81,6 @@ int64_t val, num, den; } AVFrac; -void av_frac_init(AVFrac *f, int64_t val, int64_t num, int64_t den); -void av_frac_add(AVFrac *f, int64_t incr); -void av_frac_set(AVFrac *f, int64_t val); - /*************************************************/ /* input/output formats */
--- a/utils.c Sun Jun 25 12:46:01 2006 +0000 +++ b/utils.c Sun Jun 25 17:37:12 2006 +0000 @@ -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 @@ * @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 @@ /** * 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 @@ * @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;