Browse Source

avio: fix sizeof argument

CC: libav-stable@libav.org
Bug-Id: CID 732284
tags/n2.4.7
Michael Niedermayer Vittorio Giovara 11 years ago
parent
commit
5aceced0a0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/avio.c

+ 1
- 1
libavformat/avio.c View File

@@ -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