[MPlayer-dev-eng] [PATCH] QuickTime in24 and in32 PCM audio support

Dominik 'Rathann' Mierzejewski dominik at rangers.eu.org
Sat Mar 11 20:51:03 CET 2006


A trivial patch to support these two.
Sample for in24:
ftp://ftp.funcom.com/media/Dreamfall/final_dreamfall_trailer_funcom_qtmp4.mov

If nobody speaks up, I'll commit it on Monday.

Regards,
R.

PS. Thanks to ShadowJK for encouraging me. ;)

-- 
MPlayer developer and RPMs maintainer: http://rpm.greysector.net/mplayer/
There should be a science of discontent. People need hard times and oppression
to develop psychic muscles.
	-- from "Collected Sayings of Muad'Dib" by the Princess Irulan
-------------- next part --------------
? mplayer-qt-inXX.patch
Index: etc/codecs.conf
===================================================================
RCS file: /cvsroot/mplayer/main/etc/codecs.conf,v
retrieving revision 1.462
diff -u -r1.462 codecs.conf
--- etc/codecs.conf	19 Feb 2006 10:15:18 -0000	1.462
+++ etc/codecs.conf	11 Mar 2006 19:44:51 -0000
@@ -2363,6 +2363,8 @@
   format 0x74776f73  ; "sowt" (MOV files)
   format 0x32336c66  ; "fl32" (MOV files)
   format 0x454e4f4e  ; "NONE" (MOV files from Kodak CX6320)
+  format 0x34326e69  ; "in24" (MOV files)
+  format 0x32336e69  ; "in32" (MOV files)
 ;;;; these are for hardware support only:  (alaw,ulaw,ima-adpcm,mpeg,ac3)
 ;  format 0x6
 ;  format 0x7
Index: libmpcodecs/ad_pcm.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_pcm.c,v
retrieving revision 1.20
diff -u -r1.20 ad_pcm.c
--- libmpcodecs/ad_pcm.c	18 Nov 2005 14:39:21 -0000	1.20
+++ libmpcodecs/ad_pcm.c	11 Mar 2006 19:44:52 -0000
@@ -65,6 +65,14 @@
        sh_audio->sample_format=AF_FORMAT_FLOAT_BE;
        sh_audio->samplesize=4;
        break;
+    case 0x34326e69: // 'in24', bigendian int24
+       sh_audio->sample_format=AF_FORMAT_S24_BE;
+       sh_audio->samplesize=3;
+       break;
+    case 0x32336e69: // 'in32', bigendian int32
+       sh_audio->sample_format=AF_FORMAT_S32_BE;
+       sh_audio->samplesize=4;
+       break;
     default: if(sh_audio->samplesize!=2) sh_audio->sample_format=AF_FORMAT_U8;
   }
   if (!sh_audio->samplesize) // this would cause MPlayer to hang later


More information about the MPlayer-dev-eng mailing list