changeset 14055:efe58d68689e

fl32: BE float32 PCM audio in mov files
author rtognimp
date Sat, 27 Nov 2004 15:39:38 +0000
parents 53ea955d19fa
children a2a7702a9e9d
files etc/codecs.conf libmpcodecs/ad_pcm.c
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/etc/codecs.conf	Fri Nov 26 16:36:03 2004 +0000
+++ b/etc/codecs.conf	Sat Nov 27 15:39:38 2004 +0000
@@ -2120,6 +2120,7 @@
   format 0x20776172  ; "raw " (MOV files)
   format 0x736f7774  ; "twos" (MOV files)
   format 0x74776f73  ; "sowt" (MOV files)
+  format 0x32336c66  ; "fl32" (MOV files)
 ;;;; these are for hardware support only:  (alaw,ulaw,ima-adpcm,mpeg,ac3)
 ;  format 0x6
 ;  format 0x7
--- a/libmpcodecs/ad_pcm.c	Fri Nov 26 16:36:03 2004 +0000
+++ b/libmpcodecs/ad_pcm.c	Sat Nov 27 15:39:38 2004 +0000
@@ -57,6 +57,10 @@
        sh_audio->ds->ss_mul= sh_audio->samplesize * sh_audio->channels;
 #endif
        break;
+    case 0x32336c66: // 'fl32', bigendian float32
+       sh_audio->sample_format=AFMT_AF_FLAGS | AF_FORMAT_BE | AF_FORMAT_F;
+       sh_audio->samplesize=4;
+       break;
     default: if(sh_audio->samplesize!=2) sh_audio->sample_format=AFMT_U8;
   }
   return 1;