[vlc-commits] tremor: decode to S32N

Rémi Denis-Courmont git at videolan.org
Thu Dec 20 21:09:18 CET 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Dec 20 22:09:08 2012 +0200| [27de26415a783d6881084fc7b79a46e2d68e4b64] | committer: Rémi Denis-Courmont

tremor: decode to S32N

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

 modules/codec/vorbis.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/codec/vorbis.c b/modules/codec/vorbis.c
index 3d695fe..7cc2ec9 100644
--- a/modules/codec/vorbis.c
+++ b/modules/codec/vorbis.c
@@ -253,7 +253,7 @@ static int OpenDecoder( vlc_object_t *p_this )
     /* Set output properties */
     p_dec->fmt_out.i_cat = AUDIO_ES;
 #ifdef MODULE_NAME_IS_tremor
-    p_dec->fmt_out.i_codec = VLC_CODEC_FI32;
+    p_dec->fmt_out.i_codec = VLC_CODEC_S32N;
 #else
     p_dec->fmt_out.i_codec = VLC_CODEC_FL32;
 #endif
@@ -475,11 +475,11 @@ static void Interleave( INTERLEAVE_TYPE *p_out, const INTERLEAVE_TYPE **pp_in,
 {
     for( int j = 0; j < i_samples; j++ )
         for( int i = 0; i < i_nb_channels; i++ )
-            p_out[j * i_nb_channels + pi_chan_table[i]] = pp_in[i][j]
 #ifdef MODULE_NAME_IS_tremor
-                * (FIXED32_ONE >> 24)
+            p_out[j * i_nb_channels + pi_chan_table[i]] = pp_in[i][j] << 8;
+#else
+            p_out[j * i_nb_channels + pi_chan_table[i]] = pp_in[i][j];
 #endif
-            ;
 }
 
 /*****************************************************************************



More information about the vlc-commits mailing list