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

ramiro subversion at mplayerhq.hu
Tue Aug 26 21:47:19 CEST 2008


Author: ramiro
Date: Tue Aug 26 21:47:19 2008
New Revision: 3627

Log:
Add define for number of codebooks.

Modified:
   mlp/mlpenc.c

Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c	(original)
+++ mlp/mlpenc.c	Tue Aug 26 21:47:19 2008
@@ -90,6 +90,9 @@ typedef struct BestOffset {
 /** Maximum number of subblocks this implementation of the encoder uses. */
 #define MAX_SUBBLOCKS       2
 
+/** Number of possible codebooks (counting "no codebooks") */
+#define NUM_CODEBOOKS       4
+
 typedef struct {
     AVCodecContext *avctx;
 
@@ -1564,7 +1567,7 @@ static void determine_bits(MLPEncodeCont
 
         offset = av_clip(average, HUFF_OFFSET_MIN, HUFF_OFFSET_MAX);
 
-        for (i = 1; i < 4; i++) {
+        for (i = 1; i < NUM_CODEBOOKS; i++) {
             BestOffset temp_bo = { 0, INT_MAX, 0, 0, 0, };
             int16_t offset_max;
 



More information about the FFmpeg-soc mailing list