diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-08-25 18:33:11 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-08-25 22:55:11 +0200 |
commit | 2a85826e5753aac8964254bd5688a03e49a7f551 (patch) | |
tree | 5a736330088489ea7dca9c4cd886b463e442d197 | |
parent | 080acf7771e1ca7ab1b20a3c8f20f0ef1150e285 (diff) | |
download | ffmpeg-2a85826e5753aac8964254bd5688a03e49a7f551.tar.gz |
avcodec/vp9: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/vp9.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c index 8f22685619..31725e6f84 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -368,7 +368,7 @@ static int update_block_buffers(AVCodecContext *ctx) if (s->uses_2pass) { int sbs = s->sb_cols * s->sb_rows; - s->b_base = av_malloc(sizeof(VP9Block) * s->cols * s->rows); + s->b_base = av_malloc_array(s->cols * s->rows, sizeof(VP9Block)); s->block_base = av_mallocz((64 * 64 + 128) * sbs * 3); if (!s->b_base || !s->block_base) return AVERROR(ENOMEM); |