[FFmpeg-cvslog] avio: fix sizeof argument

Michael Niedermayer git at videolan.org
Mon Oct 20 21:23:25 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Oct 18 01:12:12 2014 +0100| [02484d1a9316a9309fc1830825345ab79f6a8d60] | committer: Vittorio Giovara

avio: fix sizeof argument

CC: libav-stable at libav.org
Bug-Id: CID 732284

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

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

diff --git a/libavformat/avio.c b/libavformat/avio.c
index 7f6449c..f68994c 100644
--- a/libavformat/avio.c
+++ b/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_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