Also, fix the documentation for vector_clipf(). The SSE version operates
on 16 values at a time.
---
 libavcodec/cook.c    |    2 +-
 libavcodec/dsputil.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/cook.c b/libavcodec/cook.c
index 85565bb..0bc3f37 100644
--- a/libavcodec/cook.c
+++ b/libavcodec/cook.c
@@ -867,7 +867,7 @@ static inline void decode_bytes_and_gain(COOKContext *q, 
COOKSubpacket *p,
 static void saturate_output_float(COOKContext *q, float *out)
 {
     q->dsp.vector_clipf(out, q->mono_mdct_output + q->samples_per_channel,
-                        -1.0f, 1.0f, FFALIGN(q->samples_per_channel, 8));
+                        -1.0f, 1.0f, FFALIGN(q->samples_per_channel, 16));
 }
 
 
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h
index 3a5c94a..22d6a17 100644
--- a/libavcodec/dsputil.h
+++ b/libavcodec/dsputil.h
@@ -352,7 +352,7 @@ typedef struct DSPContext {
     void (*vector_fmul_reverse)(float *dst, const float *src0, const float 
*src1, int len);
     /* assume len is a multiple of 8, and src arrays are 16-byte aligned */
     void (*vector_fmul_add)(float *dst, const float *src0, const float *src1, 
const float *src2, int len);
-    /* assume len is a multiple of 8, and arrays are 16-byte aligned */
+    /* assume len is a multiple of 16, and arrays are 16-byte aligned */
     void (*vector_clipf)(float *dst /* align 16 */, const float *src /* align 
16 */, float min, float max, int len /* align 16 */);
     /**
      * Calculate the scalar product of two vectors of floats.
-- 
1.7.1

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to