diff options
author | Chris Robinson <[email protected]> | 2012-01-11 00:55:02 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-01-11 00:55:02 -0800 |
commit | c543611897e03eb89feb0885eb61010f5f94a515 (patch) | |
tree | 6c9a746ec6a527e810d734cc5ffabc88805c3baa /examples | |
parent | d88596e13cb37fee5234522fc41e8702196f0558 (diff) |
Add some casts
Diffstat (limited to 'examples')
-rw-r--r-- | examples/alffmpeg.c | 6 |
1 files 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; |