6ff93d9b44
- LIB_DEPENDS libfaad >= 1.0 - bump PKGNAME OK naddy@
46 lines
1.3 KiB
Plaintext
46 lines
1.3 KiB
Plaintext
$OpenBSD: patch-src_inputPlugins_aac_plugin_c,v 1.1 2007/06/29 06:08:12 jakemsr Exp $
|
|
--- src/inputPlugins/aac_plugin.c.orig Mon May 28 06:19:30 2007
|
|
+++ src/inputPlugins/aac_plugin.c Thu Jun 28 21:30:21 2007
|
|
@@ -37,10 +37,10 @@
|
|
/* all code here is either based on or copied from FAAD2's frontend code */
|
|
typedef struct {
|
|
InputStream *inStream;
|
|
- long bytesIntoBuffer;
|
|
- long bytesConsumed;
|
|
- long fileOffset;
|
|
- unsigned char *buffer;
|
|
+ uint32_t bytesIntoBuffer;
|
|
+ uint32_t bytesConsumed;
|
|
+ uint32_t fileOffset;
|
|
+ uint8_t *buffer;
|
|
int atEof;
|
|
} AacBuffer;
|
|
|
|
@@ -237,10 +237,10 @@ static float getAacFloatTotalTime(char *file)
|
|
size_t fileread, tagsize;
|
|
faacDecHandle decoder;
|
|
faacDecConfigurationPtr config;
|
|
- unsigned long sampleRate;
|
|
- unsigned char channels;
|
|
+ uint32_t sampleRate;
|
|
+ uint8_t channels;
|
|
InputStream inStream;
|
|
- long bread;
|
|
+ int32_t bread;
|
|
|
|
if (openInputStream(&inStream, file) < 0)
|
|
return -1;
|
|
@@ -292,9 +292,9 @@ static int aac_decode(OutputBuffer * cb, DecoderContro
|
|
faacDecHandle decoder;
|
|
faacDecFrameInfo frameInfo;
|
|
faacDecConfigurationPtr config;
|
|
- long bread;
|
|
- unsigned long sampleRate;
|
|
- unsigned char channels;
|
|
+ int32_t bread;
|
|
+ uint32_t sampleRate;
|
|
+ uint8_t channels;
|
|
int eof = 0;
|
|
unsigned int sampleCount;
|
|
char *sampleBuffer;
|