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.
This commit is contained in:
parent
c79be51dfc
commit
176b72a28c
@ -442,6 +442,8 @@ int av_probe_input_buffer(AVIOContext *pb, AVInputFormat **fmt,
|
|||||||
} else if (max_probe_size > PROBE_BUF_MAX) {
|
} else if (max_probe_size > PROBE_BUF_MAX) {
|
||||||
max_probe_size = PROBE_BUF_MAX;
|
max_probe_size = PROBE_BUF_MAX;
|
||||||
} else if (max_probe_size < PROBE_BUF_MIN) {
|
} 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);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user