diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2016-07-24 00:47:39 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-07-25 20:39:13 +0300 |
commit | e947b75b1c76ef6793209c2c445b8c224a28717a (patch) | |
tree | d766405a1620d8b5a669fb96b3833c4586d2ee17 /libavformat/rtpdec_asf.c | |
parent | 0c75bd8e3cd7f92a65878fc643d17d7826ecc561 (diff) |
libavformat/rtpdec_asf: zero initialize the AVIOContext struct
This fixes crash in avformat_open_input() when accessing
protocol_whitelist field.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/rtpdec_asf.c')
-rw-r--r-- | libavformat/rtpdec_asf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpdec_asf.c b/libavformat/rtpdec_asf.c index 8459a513fb..2c09fda10b 100644 --- a/libavformat/rtpdec_asf.c +++ b/libavformat/rtpdec_asf.c @@ -101,7 +101,7 @@ int ff_wms_parse_sdp_a_line(AVFormatContext *s, const char *p) { int ret = 0; if (av_strstart(p, "pgmpu:data:application/vnd.ms.wms-hdr.asfv1;base64,", &p)) { - AVIOContext pb; + AVIOContext pb = { 0 }; RTSPState *rt = s->priv_data; AVDictionary *opts = NULL; int len = strlen(p) * 6 / 8; |