Commit 02484d1a authored by Michael Niedermayer's avatar Michael Niedermayer Committed by Vittorio Giovara

avio: fix sizeof argument

CC: libav-stable@libav.org
Bug-Id: CID 732284
parent 8ab3b71e
......@@ -361,7 +361,7 @@ int ffurl_get_multi_file_handle(URLContext *h, int **handles, int *numhandles)
if (!h->prot->url_get_multi_file_handle) {
if (!h->prot->url_get_file_handle)
return AVERROR(ENOSYS);
*handles = av_malloc(sizeof(*handles));
*handles = av_malloc(sizeof(**handles));
if (!*handles)
return AVERROR(ENOMEM);
*numhandles = 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