Commit 84040a5f authored by michael's avatar michael

Limit probing to probesize.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22758 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7b5d7a22
...@@ -562,7 +562,7 @@ int av_open_input_file(AVFormatContext **ic_ptr, const char *filename, ...@@ -562,7 +562,7 @@ int av_open_input_file(AVFormatContext **ic_ptr, const char *filename,
if (buf_size > 0) { if (buf_size > 0) {
url_setbufsize(pb, buf_size); url_setbufsize(pb, buf_size);
} }
if ((err = ff_probe_input_buffer(&pb, &fmt, filename, logctx, 0, 0)) < 0) { if ((err = ff_probe_input_buffer(&pb, &fmt, filename, logctx, 0, logctx ? (*ic_ptr)->probesize : 0)) < 0) {
goto fail; goto fail;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment