]> git.sesse.net Git - ffmpeg/commitdiff
avio: fix sizeof argument
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 18 Oct 2014 00:12:12 +0000 (01:12 +0100)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Mon, 20 Oct 2014 09:38:38 +0000 (10:38 +0100)
CC: libav-stable@libav.org
Bug-Id: CID 732284

libavformat/avio.c

index 7f6449c0873492cd4a845367ef3ad0db25c95d28..f68994cef125bedb13be1c1311b738f6ad07a31c 100644 (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_file_handle)
             return AVERROR(ENOSYS);
-        *handles = av_malloc(sizeof(*handles));
+        *handles = av_malloc(sizeof(**handles));
         if (!*handles)
             return AVERROR(ENOMEM);
         *numhandles = 1;