Revision 6fd96d1a libavcodec/ac3enc.c

View differences:

libavcodec/ac3enc.c
37 37
#include "audioconvert.h"
38 38

  
39 39

  
40
#ifndef CONFIG_AC3ENC_FLOAT
41
#define CONFIG_AC3ENC_FLOAT 0
42
#endif
43

  
44

  
40 45
/** Maximum number of exponent groups. +1 for separate DC exponent. */
41 46
#define AC3_MAX_EXP_GROUPS 85
42 47

  
......
44 49
#define SCALE_FLOAT(a, bits) lrintf((a) * (float)(1 << (bits)))
45 50

  
46 51

  
52
#if CONFIG_AC3ENC_FLOAT
53
#include "ac3enc_float.h"
54
#else
47 55
#include "ac3enc_fixed.h"
56
#endif
48 57

  
49 58

  
50 59
/**
......
130 139
} AC3EncodeContext;
131 140

  
132 141

  
133
/* prototypes for functions in ac3enc_fixed.c */
142
/* prototypes for functions in ac3enc_fixed.c and ac3_float.c */
134 143

  
135 144
static av_cold void mdct_end(AC3MDCTContext *mdct);
136 145

  

Also available in: Unified diff