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

Reply via email to