[vlc-devel] commit: Map FFmpeg F32*E and f64*E to VLC FL32 and FL64 ( Jean-Baptiste Kempf )

git version control git at videolan.org
Thu Aug 27 22:56:29 CEST 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Aug 27 22:54:12 2009 +0200| [e3d3175588ad63b255c63cab8a0fb49e32c8af8a] | committer: Jean-Baptiste Kempf 

Map FFmpeg F32*E and f64*E to VLC FL32 and FL64

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.

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

 modules/codec/avcodec/fourcc.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/modules/codec/avcodec/fourcc.c b/modules/codec/avcodec/fourcc.c
index 59d475b..0b5d619 100644
--- a/modules/codec/avcodec/fourcc.c
+++ b/modules/codec/avcodec/fourcc.c
@@ -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 */




More information about the vlc-devel mailing list