fix Mac build with ffmpeg

This commit is contained in:
AJ Kelly
2011-03-02 17:55:38 -06:00
parent 2a12c21daa
commit 9ed376e518
@@ -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 );