aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-04-01 12:09:33 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-04-01 12:09:33 +0000
commitccf8c2944c90c31dd479ce7ff2e1f1afb4f20d04 (patch)
treee8527d6c03bed2db6e0f72b0da97153584e50eb7
parent527c2e64295671bfcd9c86ca2cfd75e0f4d79f73 (diff)
downloadffmpeg-ccf8c2944c90c31dd479ce7ff2e1f1afb4f20d04.tar.gz
Limit probing to probesize.
Originally committed as revision 22758 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 929f5a418c..0cb5e4702e 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -562,7 +562,7 @@ int av_open_input_file(AVFormatContext **ic_ptr, const char *filename,
if (buf_size > 0) {
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;
}
}