[FFmpeg-cvslog] avformat/img2dec: increase probe buffer to 2k

Michael Niedermayer git at videolan.org
Fri Jul 4 05:05:48 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jul  4 04:54:32 2014 +0200| [d36fe733c1e84c7fc0e865d8ad73933e7bc92348] | committer: Michael Niedermayer

avformat/img2dec: increase probe buffer to 2k

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d36fe733c1e84c7fc0e865d8ad73933e7bc92348
---

 libavformat/img2dec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
index 7e209ee..cc53409 100644
--- a/libavformat/img2dec.c
+++ b/libavformat/img2dec.c
@@ -305,7 +305,7 @@ int ff_img_read_header(AVFormatContext *s1)
         s->split_planes       = str && !av_strcasecmp(str + 1, "y");
         st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
         if (s1->pb) {
-            int probe_buffer_size = 8;
+            int probe_buffer_size = 2048;
             uint8_t *probe_buffer = av_realloc(NULL, probe_buffer_size + AVPROBE_PADDING_SIZE);
             AVInputFormat *fmt = NULL;
             AVProbeData pd;



More information about the ffmpeg-cvslog mailing list