]> git.sesse.net Git - vlc/commitdiff
Map FFmpeg F32*E and f64*E to VLC FL32 and FL64
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 27 Aug 2009 20:54:12 +0000 (22:54 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 27 Aug 2009 20:54:12 +0000 (22:54 +0200)
This solves the Sony Wave float32 sample on little endian machines.
Of course the float64 sample doesn't work yet, because of the lack of converter.

modules/codec/avcodec/fourcc.c

index 59d475bb8f227e6260e3e2253c65bf6169e22e62..0b5d619054e8a9471fa3d24d8d2c4413d07959b1 100644 (file)
@@ -360,6 +360,13 @@ static const struct
     { VLC_CODEC_ALAW, CODEC_ID_PCM_ALAW, AUDIO_ES },
     { VLC_CODEC_MULAW, CODEC_ID_PCM_MULAW, AUDIO_ES },
     { VLC_CODEC_S24DAUD, CODEC_ID_PCM_S24DAUD, AUDIO_ES },
+#if ( !defined( WORDS_BIGENDIAN ) )
+    { VLC_CODEC_FL32, CODEC_ID_PCM_F32LE, AUDIO_ES },
+    { VLC_CODEC_FL64, CODEC_ID_PCM_F64LE, AUDIO_ES },
+#else
+    { VLC_CODEC_FL32, CODEC_ID_PCM_F32BE, AUDIO_ES },
+    { VLC_CODEC_FL64, CODEC_ID_PCM_F64BE, AUDIO_ES },
+#endif
 
     /* Subtitle streams */
     /* Before this version, subs were too experimental */