mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavf/img2dec: Initialize a stack variable.
Fixes a valgrind warning about using unitialised memory. Hopefully fixes crashes on several platforms reported through fate.
This commit is contained in:
parent
0d0d24af01
commit
273fc0139e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user