From: Felix Paul Kühne Date: Wed, 11 Jun 2008 07:40:40 +0000 (+0200) Subject: Activated iLBC support on Macs running QuickTime 7.5 or later X-Git-Tag: 0.9.0-test0~226 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=4a86bd439339cf24000dfadce78dd05c0fe46a45;p=vlc Activated iLBC support on Macs running QuickTime 7.5 or later --- diff --git a/modules/codec/quicktime.c b/modules/codec/quicktime.c index 6b4b6cdd76..804f44f85c 100644 --- a/modules/codec/quicktime.c +++ b/modules/codec/quicktime.c @@ -227,6 +227,13 @@ static int Open( vlc_object_t *p_this ) { decoder_t *p_dec = (decoder_t*)p_this; +#ifdef __APPLE__ + OSErr err; + SInt32 qtVersion; + + err = Gestalt(gestaltQuickTimeVersion, &qtVersion); +#endif + switch( p_dec->fmt_in.i_codec ) { case VLC_FOURCC('h','2','6','4'): /* H.264 */ @@ -246,6 +253,14 @@ static int Open( vlc_object_t *p_this ) return OpenVideo( p_dec ); #endif +#ifdef __APPLE__ + case VLC_FOURCC('I','L','B','C'): /* iLBC */ + if ((err == noErr) && (qtVersion < 0x07500000)) + return VLC_EGENERIC; + case VLC_FOURCC('i','l','b','c'): /* iLBC */ + if ((err == noErr) && (qtVersion < 0x07500000)) + return VLC_EGENERIC; +#endif case VLC_FOURCC('s','a','m','r'): /* 3GPP AMR audio */ case VLC_FOURCC('m','p','4','a'): /* MPEG-4 audio */ case VLC_FOURCC('Q','D','M','C'): /* QDesign */