[FFmpeg-cvslog] lavu/opt: fix range shown in set_format() log message

Stefano Sabatini git at videolan.org
Sun Nov 25 15:59:12 CET 2012


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Sun Nov 25 15:49:50 2012 +0100| [26c531cc223d5ac6e5fd78f2364247a3d902b946] | committer: Stefano Sabatini

lavu/opt: fix range shown in set_format() log message

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

 libavutil/opt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/opt.c b/libavutil/opt.c
index 24f7439..a383783 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -440,7 +440,7 @@ static int set_format(void *obj, const char *name, int fmt, int search_flags,
 
     if (fmt < -1 || fmt > max) {
         av_log(obj, AV_LOG_ERROR,
-               "Value %d for parameter '%s' out of %s format range [0 - %d]\n",
+               "Value %d for parameter '%s' out of %s format range [-1 - %d]\n",
                fmt, name, desc, max);
         return AVERROR(ERANGE);
     }



More information about the ffmpeg-cvslog mailing list