Skip to content
Snippets Groups Projects
Commit 273fc013 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos
Browse files

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
Branches
Tags
No related merge requests found
...@@ -395,7 +395,7 @@ int ff_img_read_packet(AVFormatContext *s1, AVPacket *pkt) ...@@ -395,7 +395,7 @@ int ff_img_read_packet(AVFormatContext *s1, AVPacket *pkt)
} }
if (codec->codec_id == AV_CODEC_ID_NONE) { if (codec->codec_id == AV_CODEC_ID_NONE) {
AVProbeData pd; AVProbeData pd = { 0 };
AVInputFormat *ifmt; AVInputFormat *ifmt;
uint8_t header[PROBE_BUF_MIN + AVPROBE_PADDING_SIZE]; uint8_t header[PROBE_BUF_MIN + AVPROBE_PADDING_SIZE];
int ret; int ret;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment