aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/inputPlugins/mp4_plugin.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/inputPlugins/mp4_plugin.c b/src/inputPlugins/mp4_plugin.c
index af0b53720..4c24eb15d 100644
--- a/src/inputPlugins/mp4_plugin.c
+++ b/src/inputPlugins/mp4_plugin.c
@@ -53,11 +53,11 @@ static int mp4_getAACTrack(mp4ff_t *infile) {
dummy7_8, dummy8_8;
#endif
- mp4ff_get_decoder_config(infile, i, &buff, &buff_size);
+ mp4ff_get_decoder_config(infile, i, &buff, buff_size);
if (buff) {
#ifdef HAVE_MP4AUDIOSPECIFICCONFIG
- rc = AudioSpecificConfig(buff, buff_size, &mp4ASC);
+ rc = AudioSpecificConfig(buff, *buff_size, &mp4ASC);
#else
rc = AudioSpecificConfig(buff, &dummy1_32, &dummy2_8,
&dummy3_8, &dummy4_8, &dummy5_8,
@@ -109,8 +109,8 @@ static int mp4_decode(OutputBuffer * cb, DecoderControl * dc, char * path) {
faacDecHandle * decoder;
faacDecFrameInfo frameInfo;
unsigned char * mp4Buffer;
- int mp4BufferSize;
- unsigned long sampleRate;
+ unsigned int mp4BufferSize;
+ uint32_t sampleRate;
unsigned char channels;
long sampleId;
long numSamples;