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];
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to