You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/img2dec: increase probe buffer to 2k
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -305,7 +305,7 @@ int ff_img_read_header(AVFormatContext *s1)
|
|||||||
s->split_planes = str && !av_strcasecmp(str + 1, "y");
|
s->split_planes = str && !av_strcasecmp(str + 1, "y");
|
||||||
st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
|
st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
|
||||||
if (s1->pb) {
|
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);
|
uint8_t *probe_buffer = av_realloc(NULL, probe_buffer_size + AVPROBE_PADDING_SIZE);
|
||||||
AVInputFormat *fmt = NULL;
|
AVInputFormat *fmt = NULL;
|
||||||
AVProbeData pd;
|
AVProbeData pd;
|
||||||
|
Reference in New Issue
Block a user