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

ramiro subversion at mplayerhq.hu
Sat Aug 9 20:38:04 CEST 2008


Author: ramiro
Date: Sat Aug  9 20:38:04 2008
New Revision: 3097

Log:
Treat 'sample' as 32-bit to allow 24-bit samples.
Note: I still haven't actually tested 24-bit samples.

Modified:
   mlp/mlpenc.c

Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c	(original)
+++ mlp/mlpenc.c	Sat Aug  9 20:38:04 2008
@@ -799,7 +799,7 @@ static void determine_bits(MLPEncodeCont
 
             /* Determine extremes. */
             for (i = 0; i < dp->blocksize; i++) {
-                int16_t sample = ctx->sample_buffer[i][channel] >> 8;
+                int32_t sample = ctx->sample_buffer[i][channel] >> 8;
                 if (sample < min)
                     min = sample;
                 if (sample > max)



More information about the FFmpeg-soc mailing list