aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2016-07-23 23:47:39 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-08-13 13:08:57 +0200
commitc5757266219c48bd4e3bbb382df2ff6048d19f26 (patch)
tree73486cd46fcb26fbfbf2e655a605d2d887c5dc98
parent6e6609f5dd61e2b195748b16d46964bd97d77c80 (diff)
downloadandroid_external_ffmpeg-c5757266219c48bd4e3bbb382df2ff6048d19f26.tar.gz
android_external_ffmpeg-c5757266219c48bd4e3bbb382df2ff6048d19f26.tar.bz2
android_external_ffmpeg-c5757266219c48bd4e3bbb382df2ff6048d19f26.zip
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> (cherry picked from commit e947b75b1c76ef6793209c2c445b8c224a28717a) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavformat/rtpdec_asf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpdec_asf.c b/libavformat/rtpdec_asf.c
index 2b1ddf140d..1c88580f84 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;