Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2014-11-22 22:49:13 +0300
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2014-11-23 08:51:18 +0300
commit458aadf8627c27c35cc29e7842c6f7fc9a5695ad (patch)
tree63ebb61d9432931f2fc92bb634b0f4c694595a46 /libavcodec/lpc.h
parentf87a34486af06c2c396d4dd1df8ffb74eaf77459 (diff)
lpc: Reduce stack usage by allocating LLSModel in context.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavcodec/lpc.h')
-rw-r--r--libavcodec/lpc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/lpc.h b/libavcodec/lpc.h
index 9e0b056338..96acb37146 100644
--- a/libavcodec/lpc.h
+++ b/libavcodec/lpc.h
@@ -24,6 +24,7 @@
#include <stdint.h>
#include "libavutil/avassert.h"
+#include "libavutil/lls.h"
#define ORDER_METHOD_EST 0
#define ORDER_METHOD_2LEVEL 1
@@ -79,6 +80,9 @@ typedef struct LPCContext {
*/
void (*lpc_compute_autocorr)(const double *data, int len, int lag,
double *autoc);
+
+ // TODO: these should be allocated to reduce ABI compatibility issues
+ LLSModel lls_models[2];
} LPCContext;