diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-08-10 17:45:05 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-08-10 18:20:12 +0200 |
commit | 273fc0139e0add4b45d40849ff88c6df5a7e819b (patch) | |
tree | 4961b280339262878aec75898a446a6774c11c01 /libavformat/img2dec.c | |
parent | 0d0d24af0159ff08f396ad04cd63ce5655b1fc60 (diff) | |
download | ffmpeg-273fc0139e0add4b45d40849ff88c6df5a7e819b.tar.gz |
lavf/img2dec: Initialize a stack variable.
Fixes a valgrind warning about using unitialised memory.
Hopefully fixes crashes on several platforms reported through fate.
Diffstat (limited to 'libavformat/img2dec.c')
-rw-r--r-- | libavformat/img2dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c index b9a1bcfb66..d70fc75691 100644 --- a/libavformat/img2dec.c +++ b/libavformat/img2dec.c @@ -395,7 +395,7 @@ int ff_img_read_packet(AVFormatContext *s1, AVPacket *pkt) } if (codec->codec_id == AV_CODEC_ID_NONE) { - AVProbeData pd; + AVProbeData pd = { 0 }; AVInputFormat *ifmt; uint8_t header[PROBE_BUF_MIN + AVPROBE_PADDING_SIZE]; int ret; |