diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2013-01-16 12:53:01 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-01-19 00:13:52 +0100 |
commit | 176b72a28c7d09436dfdb63a9b5349fd0e65ad5a (patch) | |
tree | 676de394b8f761320e4f9512424deebb212876fe | |
parent | c79be51dfc807e8d17d2b0a28ee6143e18c63749 (diff) | |
download | ffmpeg-176b72a28c7d09436dfdb63a9b5349fd0e65ad5a.tar.gz |
lavf/utils: provide feedback in case of invalid probe size
Log message in case the max_probe_size value in av_probe_input_buffer()
is smaller than the minimum accepted value.
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 576713adfd..97d65583ee 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -442,6 +442,8 @@ int av_probe_input_buffer(AVIOContext *pb, AVInputFormat **fmt, } else if (max_probe_size > PROBE_BUF_MAX) { max_probe_size = PROBE_BUF_MAX; } else if (max_probe_size < PROBE_BUF_MIN) { + av_log(logctx, AV_LOG_ERROR, + "Specified probe size value %u cannot be < %u\n", max_probe_size, PROBE_BUF_MIN); return AVERROR(EINVAL); } |