From 9ed376e51882662492809044839237a13a5b3cab Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Wed, 2 Mar 2011 17:55:38 -0600 Subject: [PATCH] fix Mac build with ffmpeg --- src/arch/MovieTexture/MovieTexture_FFMpeg.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp b/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp index 1f5e0f0be7..e7cf2077ad 100644 --- a/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp +++ b/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp @@ -685,7 +685,11 @@ int URLRageFile_read( avcodec::URLContext *h, unsigned char *buf, int size ) return f->Read( buf, size ); } -int URLRageFile_write( avcodec::URLContext *h, const unsigned char *buf, int size ) +#if defined(MACOSX) + int URLRageFile_write( avcodec::URLContext *h, unsigned char *buf, int size ) +#else + int URLRageFile_write( avcodec::URLContext *h, const unsigned char *buf, int size ) +#end { RageFileBasic *f = (RageFileBasic *) h->priv_data; return f->Write( buf, size );