git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
640c096
)
avformat/teeproto: Fix memset sizeof
author
Michael Niedermayer
<michael@niedermayer.cc>
Fri, 22 Jul 2016 08:34:14 +0000
(10:34 +0200)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Fri, 22 Jul 2016 08:47:34 +0000
(10:47 +0200)
Found-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/teeproto.c
patch
|
blob
|
history
diff --git
a/libavformat/teeproto.c
b/libavformat/teeproto.c
index
62055de
..
12d5423
100644
(file)
--- 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,