Mercurial > libavcodec.hg
comparison resample.c @ 1125:0980ae063f4e libavcodec
restoring OS/2 compatibility patch by ("Slavik Gnatenko" <miracle9 at newmail dot ru>)
author | michaelni |
---|---|
date | Tue, 11 Mar 2003 12:09:13 +0000 |
parents | 1e39f273ecd6 |
children | 300961b1ef4f |
comparison
equal
deleted
inserted
replaced
1124:64c7c76ed17c | 1125:0980ae063f4e |
---|---|
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 |
27 #if defined (CONFIG_OS2) | |
28 #define floorf(n) floor(n) | |
29 #endif | |
30 | |
27 typedef struct { | 31 typedef struct { |
28 /* fractional resampling */ | 32 /* fractional resampling */ |
29 uint32_t incr; /* fractional increment */ | 33 uint32_t incr; /* fractional increment */ |
30 uint32_t frac; | 34 uint32_t frac; |
31 int last_sample; | 35 int last_sample; |