summaryrefslogtreecommitdiff
path: root/libavcodec/aacenc.h
diff options
context:
space:
mode:
authorNathan Caldwell <saintdev@gmail.com>2011-03-08 01:22:14 -0700
committerMichael Niedermayer <michaelni@gmx.at>2011-03-08 12:39:34 +0100
commitf56c4850e7d3903eb31499edb3ef8352905c6cc2 (patch)
tree6241d30a05d1c241f0e0e5116dce7a2b1bdca03d /libavcodec/aacenc.h
parentb543e1dccf66804bab2e03d70ebb4b25b324a511 (diff)
aacenc: Fix a segfault in search_for_quantizers
This reverts the removal of scoefs from AACEncContext. It resulted in scoefs being a NULL pointer when search_for_quantizers() is called. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/aacenc.h')
-rw-r--r--libavcodec/aacenc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aacenc.h b/libavcodec/aacenc.h
index 3559234ff1..1c8467990c 100644
--- a/libavcodec/aacenc.h
+++ b/libavcodec/aacenc.h
@@ -63,8 +63,8 @@ typedef struct AACEncContext {
int cur_channel;
int last_frame;
float lambda;
- float *scoefs; ///< scaled coefficients
DECLARE_ALIGNED(16, int, qcoefs)[96]; ///< quantized coefficients
+ DECLARE_ALIGNED(16, float, scoefs)[1024]; ///< scaled coefficients
} AACEncContext;
#endif /* AVCODEC_AACENC_H */