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:
authorJames Darnley <james.darnley@gmail.com>2014-08-13 01:22:02 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-08-13 03:14:47 +0400
commit0081a14e7d1e44536400df19ad6c9ea8118db2e9 (patch)
treec332e6e548a984cb078419c7bec1e56999a65d40 /libavcodec/flacenc.c
parent7cafdfe9c7992e95f08b320fc7b4f1512e4e2afb (diff)
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.c2
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 {