diff options
author | James Darnley <james.darnley@gmail.com> | 2014-08-12 23:22:02 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-08-13 01:14:47 +0200 |
commit | 0081a14e7d1e44536400df19ad6c9ea8118db2e9 (patch) | |
tree | c332e6e548a984cb078419c7bec1e56999a65d40 /libavcodec/flacenc.c | |
parent | 7cafdfe9c7992e95f08b320fc7b4f1512e4e2afb (diff) | |
download | ffmpeg-0081a14e7d1e44536400df19ad6c9ea8118db2e9.tar.gz |
lavc/flacenc: add sse4 version of the 16-bit lpc encoder
From 1.8 to 2.4 times faster. Runtime is reduced by 2 to 39%. The
speed-up generally increases with compression_level.
This lpc encoder is not used with levels < 3 so it provides no speed-up
in these cases.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/flacenc.c')
-rw-r--r-- | libavcodec/flacenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c index 3a3b2ae9f7..f37bab8f3e 100644 --- a/libavcodec/flacenc.c +++ b/libavcodec/flacenc.c @@ -80,7 +80,7 @@ typedef struct FlacSubframe { int shift; RiceContext rc; int32_t samples[FLAC_MAX_BLOCKSIZE]; - int32_t residual[FLAC_MAX_BLOCKSIZE+1]; + int32_t residual[FLAC_MAX_BLOCKSIZE+3]; } FlacSubframe; typedef struct FlacFrame { |