libavformat/rtpdec_asf: zero initialize the AVIOContext struct
authorKacper Michajłow <kasper93@gmail.com>
Sat, 23 Jul 2016 21:47:39 +0000 (23:47 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 25 Jul 2016 17:39:13 +0000 (19:39 +0200)
This fixes crash in avformat_open_input() when accessing
protocol_whitelist field.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/rtpdec_asf.c

index 8459a51..2c09fda 100644 (file)
@@ -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;