diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-12-24 00:52:56 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-24 00:52:56 +0300 |
commit | 341bd6ec6a8f9b3fe028f8725bca080b712c8a87 (patch) | |
tree | 106868d0a7764319db40b21b0d95e7fcdfe53c0e | |
parent | e01467241fe784f0e4acff60ff23f77c08c276ba (diff) |
avfilter/vf_uspp: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavfilter/vf_uspp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_uspp.c b/libavfilter/vf_uspp.c index 3fd48d5c8f..ffd340a4cb 100644 --- a/libavfilter/vf_uspp.c +++ b/libavfilter/vf_uspp.c @@ -335,9 +335,9 @@ static int config_input(AVFilterLink *inlink) int h = ((height + 4 * BLOCK-1) & (~(2 * BLOCK-1))) >> (is_chroma ? uspp->vsub : 0); uspp->temp_stride[i] = w; - if (!(uspp->temp[i] = av_malloc(uspp->temp_stride[i] * h * sizeof(int16_t)))) + if (!(uspp->temp[i] = av_malloc_array(uspp->temp_stride[i], h * sizeof(int16_t)))) return AVERROR(ENOMEM); - if (!(uspp->src [i] = av_malloc(uspp->temp_stride[i] * h * sizeof(uint8_t)))) + if (!(uspp->src [i] = av_malloc_array(uspp->temp_stride[i], h * sizeof(uint8_t)))) return AVERROR(ENOMEM); } |