[FFmpeg-cvslog] avio: fix sizeof argument

Michael Niedermayer git at videolan.org
Fri Oct 19 22:55:56 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Oct 19 22:35:32 2012 +0200| [a96577df38469e5075caa416d3374576d9ab64ee] | committer: Michael Niedermayer

avio: fix sizeof argument

Fixes CID732284
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a96577df38469e5075caa416d3374576d9ab64ee
---

 libavformat/avio.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/avio.c b/libavformat/avio.c
index 2e90012..b67a502 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -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_file_handle)
             return AVERROR(ENOSYS);
-        *handles = av_malloc(sizeof(*handles));
+        *handles = av_malloc(sizeof(**handles));
         if (!*handles)
             return AVERROR(ENOMEM);
         *numhandles = 1;



More information about the ffmpeg-cvslog mailing list