Skip to content
Snippets Groups Projects
Commit c3b6454d authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avutil/fixed_dsp: Check for av_malloc() failure


Fixes CID1271051

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 22bb5bd7
No related branches found
No related tags found
No related merge requests found
...@@ -91,6 +91,10 @@ static void vector_fmul_window_fixed_c(int32_t *dst, const int32_t *src0, ...@@ -91,6 +91,10 @@ static void vector_fmul_window_fixed_c(int32_t *dst, const int32_t *src0,
AVFixedDSPContext * avpriv_alloc_fixed_dsp(int bit_exact) AVFixedDSPContext * avpriv_alloc_fixed_dsp(int bit_exact)
{ {
AVFixedDSPContext * fdsp = av_malloc(sizeof(AVFixedDSPContext)); AVFixedDSPContext * fdsp = av_malloc(sizeof(AVFixedDSPContext));
if (!fdsp)
return NULL;
fdsp->vector_fmul_window_scaled = vector_fmul_window_fixed_scaled_c; fdsp->vector_fmul_window_scaled = vector_fmul_window_fixed_scaled_c;
fdsp->vector_fmul_window = vector_fmul_window_fixed_c; fdsp->vector_fmul_window = vector_fmul_window_fixed_c;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment