提交 d36fe733 编写于 作者: M Michael Niedermayer

avformat/img2dec: increase probe buffer to 2k

Signed-off-by: NMichael Niedermayer <michaelni@gmx.at>
上级 a195c98c
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册