mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-27 19:02:13 +08:00
Replace all occurences of av_mallocz_array() by av_calloc()
They do the same. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -122,7 +122,7 @@ const URLProtocol **ffurl_get_protocols(const char *whitelist,
|
||||
const URLProtocol **ret;
|
||||
int i, ret_idx = 0;
|
||||
|
||||
ret = av_mallocz_array(FF_ARRAY_ELEMS(url_protocols), sizeof(*ret));
|
||||
ret = av_calloc(FF_ARRAY_ELEMS(url_protocols), sizeof(*ret));
|
||||
if (!ret)
|
||||
return NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user