]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/utils.c
cafdec: fix overflow checking in read_header()
[ffmpeg] / libavformat / utils.c
index 576713adfd77d0c964e8ae4b7c3983a7ace0ee1a..97d65583eedbbd01bed989d74aa4678baebda435 100644 (file)
@@ -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);
     }