aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-07-22 10:34:14 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-07-22 10:47:34 +0200
commite83a01def3ad7ca8a7344f4774acdbe8adbec37d (patch)
tree870da2ebdbd9f19ba83d63234a27e06c6775d8da
parent640c0962c09c993ffb98dd3d2a8687fa29f9af3a (diff)
downloadffmpeg-e83a01def3ad7ca8a7344f4774acdbe8adbec37d.tar.gz
avformat/teeproto: Fix memset sizeof
Found-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavformat/teeproto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/teeproto.c b/libavformat/teeproto.c
index 62055de990..12d5423b5b 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,