From 65a8822a0b29c2f321922839bb3e7c28c18cc7c9 Mon Sep 17 00:00:00 2001 From: Laszlo Ashin Date: Thu, 20 Nov 2008 19:19:30 +0100 Subject: aac: get rid of gcc warnings --- src/decoder/aac_plugin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/decoder') diff --git a/src/decoder/aac_plugin.c b/src/decoder/aac_plugin.c index d23d43b55..5938822db 100644 --- a/src/decoder/aac_plugin.c +++ b/src/decoder/aac_plugin.c @@ -256,7 +256,7 @@ static float getAacFloatTotalTime(const char *file) /* neaacdec.h declares all arguments as "unsigned long", but internally expects uint32_t pointers. To avoid gcc warnings, use this workaround. */ - unsigned long *sample_rate_r = (unsigned long*)&sample_rate; + unsigned long *sample_rate_r = (unsigned long *)(void *)&sample_rate; #else uint32_t *sample_rate_r = &sample_rate; #endif @@ -320,7 +320,7 @@ aac_stream_decode(struct decoder *mpd_decoder, struct input_stream *inStream) /* neaacdec.h declares all arguments as "unsigned long", but internally expects uint32_t pointers. To avoid gcc warnings, use this workaround. */ - unsigned long *sample_rate_r = (unsigned long*)&sample_rate; + unsigned long *sample_rate_r = (unsigned long *)(void *)&sample_rate; #else uint32_t *sample_rate_r = &sample_rate; #endif -- cgit v1.2.3