diff options
author | Michael Niedermayer | 2014-07-04 03:43:02 +0200 |
---|---|---|
committer | Michael Niedermayer | 2014-07-04 04:00:27 +0200 |
commit | 0437445926a36a7a1d76dff988e25742e907da33 (patch) | |
tree | 34fbf06104927454ebdcd239ea52af3eb371250e /libavformat/img2dec.c | |
parent | 6691eee48c7f08caf479ce3562a1c83447529ab9 (diff) |
avformat/img2dec: set AVProbeData size correctly on corner cases of tiny files
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/img2dec.c')
-rw-r--r-- | libavformat/img2dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c index 71b50b19bb..7e209eefa7 100644 --- a/libavformat/img2dec.c +++ b/libavformat/img2dec.c @@ -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))) { |