Commit 04374459 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/img2dec: set AVProbeData size correctly on corner cases of tiny files

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6691eee4
......@@ -321,7 +321,7 @@ int ff_img_read_header(AVFormatContext *s1)
memset(probe_buffer + probe_buffer_size, 0, AVPROBE_PADDING_SIZE);
pd.buf = probe_buffer;
pd.buf_size = 8;
pd.buf_size = probe_buffer_size;
pd.filename = s1->filename;
while ((fmt = av_iformat_next(fmt))) {
......
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