Mercurial > libavcodec.hg
comparison resample.c @ 1128:300961b1ef4f libavcodec
* moved os_support.h into libavcodec
* added few more functions for os2
author | kabi |
---|---|
date | Wed, 12 Mar 2003 18:57:33 +0000 |
parents | 0980ae063f4e |
children | 4d67eb341a0c |
comparison
equal
deleted
inserted
replaced
1127:7bde81d2f2c5 | 1128:300961b1ef4f |
---|---|
21 * @file resample.c | 21 * @file resample.c |
22 * Sample rate convertion for both audio and video. | 22 * Sample rate convertion for both audio and video. |
23 */ | 23 */ |
24 | 24 |
25 #include "avcodec.h" | 25 #include "avcodec.h" |
26 | 26 #include "os_support.h" |
27 #if defined (CONFIG_OS2) | |
28 #define floorf(n) floor(n) | |
29 #endif | |
30 | 27 |
31 typedef struct { | 28 typedef struct { |
32 /* fractional resampling */ | 29 /* fractional resampling */ |
33 uint32_t incr; /* fractional increment */ | 30 uint32_t incr; /* fractional increment */ |
34 uint32_t frac; | 31 uint32_t frac; |