Mercurial > libavformat.hg
diff utils.c @ 5917:6cc73b15aa28 libavformat
Limit probing to probesize.
| author | michael |
|---|---|
| date | Thu, 01 Apr 2010 12:09:33 +0000 |
| parents | ae90b07a6f29 |
| children | d9f196991fe4 |
line wrap: on
line diff
--- a/utils.c Thu Apr 01 08:02:20 2010 +0000 +++ b/utils.c Thu Apr 01 12:09:33 2010 +0000 @@ -562,7 +562,7 @@ 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; } }
