[FFmpeg-soc] [soc]: r3364 - mlp/mlpenc.c

ramiro subversion at mplayerhq.hu
Sat Aug 16 21:18:13 CEST 2008


Author: ramiro
Date: Sat Aug 16 21:18:13 2008
New Revision: 3364

Log:
Treat 24-bit input as 32-bit with the 8 lsb zeroed.

Modified:
   mlp/mlpenc.c

Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c	(original)
+++ mlp/mlpenc.c	Sat Aug 16 21:18:13 2008
@@ -540,7 +540,7 @@ static void input_data_internal(MLPEncod
             for (channel = 0; channel <= rh->max_channel; channel++) {
                 int32_t sample;
 
-                if (is24) sample = *samples_32++;
+                if (is24) sample = *samples_32++ >> 8;
                 else      sample = *samples_16++;
 
                 sample <<= dp->quant_step_size[channel];



More information about the FFmpeg-soc mailing list