mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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:
parent
6691eee48c
commit
0437445926
@ -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))) {
|
||||
|
Loading…
Reference in New Issue
Block a user