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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-07-04 03:43:02 +02:00
parent 6691eee48c
commit 0437445926
1 changed files with 1 additions and 1 deletions

View File

@ -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))) {