From 31ff9bd7b8cd8236f70e2bf5368a480fa49f7d27 Mon Sep 17 00:00:00 2001 From: Nathan Caldwell Date: Tue, 8 Mar 2011 01:22:14 -0700 Subject: 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: Ronald S. Bultje --- libavcodec/aacenc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/aacenc.h') 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 */ -- cgit v1.2.3