From c543611897e03eb89feb0885eb61010f5f94a515 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 11 Jan 2012 00:55:02 -0800 Subject: [PATCH] Add some casts --- examples/alffmpeg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/alffmpeg.c b/examples/alffmpeg.c index 2c10efb1..7dadccfe 100644 --- a/examples/alffmpeg.c +++ b/examples/alffmpeg.c @@ -335,7 +335,7 @@ StreamPtr getAVAudioStream(FilePtr file, int streamnum) /* Allocate space for the decoded data to be stored in before it * gets passed to the app */ - stream->DecodedData = av_malloc(AVCODEC_MAX_AUDIO_FRAME_SIZE); + stream->DecodedData = (char*)av_malloc(AVCODEC_MAX_AUDIO_FRAME_SIZE); if(!stream->DecodedData) { avcodec_close(stream->CodecCtx); @@ -599,12 +599,12 @@ void *decodeAVAudioStream(StreamPtr stream, size_t *length) ptr = realloc(outbuf, NextPowerOf2(buflen+got)); if(ptr == NULL) break; - outbuf = ptr; + outbuf = (char*)ptr; memcpy(&outbuf[buflen], inbuf, got); buflen += got; } - outbuf = realloc(outbuf, buflen); + outbuf = (char*)realloc(outbuf, buflen); *length = buflen; return outbuf; -- 2.11.4.GIT