[vlc-devel] commit: Activated iLBC support on Macs running QuickTime 7.5 or later ( Felix Paul Kühne )

git version control git at videolan.org
Wed Jun 11 09:38:56 CEST 2008


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Jun 11 09:40:40 2008 +0200| [4a86bd439339cf24000dfadce78dd05c0fe46a45]

Activated iLBC support on Macs running QuickTime 7.5 or later

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4a86bd439339cf24000dfadce78dd05c0fe46a45
---

 modules/codec/quicktime.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/modules/codec/quicktime.c b/modules/codec/quicktime.c
index 6b4b6cd..804f44f 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 */




More information about the vlc-devel mailing list