mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 15:52:25 +00:00
fl32: BE float32 PCM audio in mov files
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14056 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2f83863883
commit
8f07e02737
@ -2120,6 +2120,7 @@ audiocodec pcm
|
||||
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
|
||||
|
@ -57,6 +57,10 @@ static int init(sh_audio_t *sh_audio)
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user