Commit 273fc013 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

lavf/img2dec: Initialize a stack variable.

Fixes a valgrind warning about using unitialised memory.
Hopefully fixes crashes on several platforms reported through fate.
parent 0d0d24af
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment