Mercurial > libavformat.hg
changeset 5917:6cc73b15aa28 libavformat
Limit probing to probesize.
author | michael |
---|---|
date | Thu, 01 Apr 2010 12:09:33 +0000 |
parents | 1fec9e2cd5c5 |
children | e3b4d7181606 |
files | utils.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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; } }