avio: fix sizeof argument

CC: libav-stable@libav.org
Bug-Id: CID 732284
pull/87/merge
Michael Niedermayer 10 years ago committed by Vittorio Giovara
parent 8ab3b71e4b
commit 02484d1a93
  1. 2
      libavformat/avio.c

@ -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_multi_file_handle) {
if (!h->prot->url_get_file_handle) if (!h->prot->url_get_file_handle)
return AVERROR(ENOSYS); return AVERROR(ENOSYS);
*handles = av_malloc(sizeof(*handles)); *handles = av_malloc(sizeof(**handles));
if (!*handles) if (!*handles)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
*numhandles = 1; *numhandles = 1;

Loading…
Cancel
Save