From 05c41a80ed4c62ea66bdf5aa95d1b5b0fdc79d30 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 12 Apr 2008 04:15:24 +0000 Subject: fix parameter types in the faad calls libfaad wants uint32_t pointers. Passing a long pointer is bugged on amd64. git-svn-id: https://svn.musicpd.org/mpd/trunk@7289 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/inputPlugins/aac_plugin.c | 4 ++-- src/inputPlugins/mp4_plugin.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/inputPlugins/aac_plugin.c b/src/inputPlugins/aac_plugin.c index de442acf7..7fa1ba332 100644 --- a/src/inputPlugins/aac_plugin.c +++ b/src/inputPlugins/aac_plugin.c @@ -234,7 +234,7 @@ static float getAacFloatTotalTime(char *file) size_t fileread, tagsize; faacDecHandle decoder; faacDecConfigurationPtr config; - unsigned long sampleRate; + uint32_t sampleRate; unsigned char channels; InputStream inStream; long bread; @@ -290,7 +290,7 @@ static int aac_decode(OutputBuffer * cb, DecoderControl * dc, char *path) faacDecFrameInfo frameInfo; faacDecConfigurationPtr config; long bread; - unsigned long sampleRate; + uint32_t sampleRate; unsigned char channels; int eof = 0; unsigned int sampleCount; diff --git a/src/inputPlugins/mp4_plugin.c b/src/inputPlugins/mp4_plugin.c index c4a04f582..adaa644b9 100644 --- a/src/inputPlugins/mp4_plugin.c +++ b/src/inputPlugins/mp4_plugin.c @@ -97,7 +97,7 @@ static int mp4_decode(OutputBuffer * cb, DecoderControl * dc, faacDecConfigurationPtr config; unsigned char *mp4Buffer; unsigned int mp4BufferSize; - unsigned long sampleRate; + uint32_t sampleRate; unsigned char channels; long sampleId; long numSamples; -- cgit v1.2.3