summaryrefslogtreecommitdiff
path: root/libavcodec/flacenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-30 18:28:40 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-30 18:28:40 +0200
commit0eb9482e322662c834b26c1f39abe1f8b652dc73 (patch)
tree9b21b051d797b86924bc8d8704c809843ed7b017 /libavcodec/flacenc.c
parentf08ca91b05c829a193db23fef581ef0581a44347 (diff)
avcodec/flacenc: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/flacenc.c')
-rw-r--r--libavcodec/flacenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c
index 1fc8c4ce6b..b6ae4af9a7 100644
--- a/libavcodec/flacenc.c
+++ b/libavcodec/flacenc.c
@@ -649,7 +649,7 @@ static uint64_t calc_rice_params(RiceContext *rc, int pmin, int pmax,
tmp_rc.coding_mode = rc->coding_mode;
- udata = av_malloc(n * sizeof(uint32_t));
+ udata = av_malloc_array(n, sizeof(uint32_t));
for (i = 0; i < n; i++)
udata[i] = (2*data[i]) ^ (data[i]>>31);