Commit dd11959f authored by Petri Hintukainen's avatar Petri Hintukainen

Fix allocated size

Too much memory was allocated.
parent d25b0eca
......@@ -291,7 +291,7 @@ static int _parse_app_params(BITSTREAM *bs, BDJO_APP *p)
p->num_param = _count_app_strings(bs, data_length, 0, "params");
if (p->num_param) {
p->param = calloc(p->num_param, sizeof(BDJO_APP_NAME));
p->param = calloc(p->num_param, sizeof(BDJO_APP_PARAM));
if (!p->param) {
BD_DEBUG(DBG_BDJ | DBG_CRIT, "Out of memory\n");
return -1;
......
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