ffmpeg | branch: master | Michael Niedermayer <mich...@niedermayer.cc> | Fri 
Jul 22 10:34:14 2016 +0200| [e83a01def3ad7ca8a7344f4774acdbe8adbec37d] | 
committer: Michael Niedermayer

avformat/teeproto: Fix memset sizeof

Found-by: James Almer <jamr...@gmail.com>
Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc>

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

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

diff --git a/libavformat/teeproto.c b/libavformat/teeproto.c
index 62055de..12d5423 100644
--- a/libavformat/teeproto.c
+++ b/libavformat/teeproto.c
@@ -102,7 +102,7 @@ static int tee_open(URLContext *h, const char *filename, 
int flags)
             goto fail;
         }
         c->child = tmp;
-        memset(&c->child[c->child_count], 0, 
sizeof(&c->child[c->child_count]));
+        memset(&c->child[c->child_count], 0, sizeof(c->child[c->child_count]));
 
         ret = ffurl_open_whitelist(&c->child[c->child_count].url_context, 
child_name, flags,
                                    &h->interrupt_callback, /*AVDictionary 
**options*/NULL,

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to