1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avio: fix sizeof argument

Fixes CID732284
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-10-19 22:35:32 +02:00
parent d30351363f
commit a96577df38

View File

@ -396,7 +396,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;