Commit 4a86bd43 authored by Felix Paul Kühne's avatar Felix Paul Kühne

Activated iLBC support on Macs running QuickTime 7.5 or later

parent a39be083
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment