Commit 3793caa5 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/acelp_vectors: Assert that x is within the array in ff_set_fixed_vector()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent dc4a621e
......@@ -22,6 +22,7 @@
#include <inttypes.h>
#include "libavutil/avassert.h"
#include "libavutil/common.h"
#include "libavutil/float_dsp.h"
#include "avcodec.h"
......@@ -240,6 +241,7 @@ void ff_set_fixed_vector(float *out, const AMRFixed *in, float scale, int size)
float y = in->y[i] * scale;
if (in->pitch_lag > 0)
av_assert0(x < size);
do {
out[x] += y;
y *= in->pitch_fac;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment