[FFmpeg-cvslog] avformat/img2dec: set AVProbeData size correctly on corner cases of tiny files
Michael Niedermayer
git at videolan.org
Fri Jul 4 04:42:51 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jul 4 03:43:02 2014 +0200| [0437445926a36a7a1d76dff988e25742e907da33] | committer: Michael Niedermayer
avformat/img2dec: set AVProbeData size correctly on corner cases of tiny files
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0437445926a36a7a1d76dff988e25742e907da33
---
libavformat/img2dec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
index 71b50b1..7e209ee 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))) {
More information about the ffmpeg-cvslog
mailing list