[vlc-devel] commit: Added non native float 32/64 to araw decoder. (Laurent Aimar )

git version control git at videolan.org
Sat Feb 6 16:08:03 CET 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Feb  6 15:52:15 2010 +0100| [6b2e2587fe7da294efcf788ca890853cf7613047] | committer: Laurent Aimar 

Added non native float 32/64 to araw decoder.

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

 modules/codec/araw.c |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/modules/codec/araw.c b/modules/codec/araw.c
index b4c9dad..c441e82 100644
--- a/modules/codec/araw.c
+++ b/modules/codec/araw.c
@@ -191,8 +191,10 @@ static int DecoderOpen( vlc_object_t *p_this )
     case VLC_CODEC_ALAW:
     case VLC_CODEC_MULAW:
 
-    case VLC_CODEC_FL64:
-    case VLC_CODEC_FL32:
+    case VLC_CODEC_F64L:
+    case VLC_CODEC_F64B:
+    case VLC_CODEC_F32L:
+    case VLC_CODEC_F32B:
     case VLC_CODEC_S32L:
     case VLC_CODEC_S32B:
     case VLC_CODEC_S24L:
@@ -232,12 +234,14 @@ static int DecoderOpen( vlc_object_t *p_this )
              p_dec->fmt_in.audio.i_rate, p_dec->fmt_in.audio.i_channels,
              p_dec->fmt_in.audio.i_bitspersample );
 
-    if( p_dec->fmt_in.i_codec == VLC_CODEC_FL64 )
+    if( p_dec->fmt_in.i_codec == VLC_CODEC_F64L ||
+        p_dec->fmt_in.i_codec == VLC_CODEC_F64B )
     {
         p_dec->fmt_out.i_codec = p_dec->fmt_in.i_codec;
         p_dec->fmt_in.audio.i_bitspersample = 64;
     }
-    else if( p_dec->fmt_in.i_codec == VLC_CODEC_FL32 )
+    else if( p_dec->fmt_in.i_codec == VLC_CODEC_F32L ||
+             p_dec->fmt_in.i_codec == VLC_CODEC_F32B )
     {
         p_dec->fmt_out.i_codec = p_dec->fmt_in.i_codec;
         p_dec->fmt_in.audio.i_bitspersample = 32;




More information about the vlc-devel mailing list