[FFmpeg-cvslog] lavf/utils: provide feedback in case of invalid probe size

Stefano Sabatini git at videolan.org
Sat Jan 19 00:25:50 CET 2013


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Wed Jan 16 12:53:01 2013 +0100| [176b72a28c7d09436dfdb63a9b5349fd0e65ad5a] | committer: Stefano Sabatini

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.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=176b72a28c7d09436dfdb63a9b5349fd0e65ad5a
---

 libavformat/utils.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 576713a..97d6558 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);
     }
 



More information about the ffmpeg-cvslog mailing list