changeset 9640:854368240f7d libavcodec

Provide a context to av_log() calls in av_set_number2() and av_set_string3().
author stefano
date Thu, 14 May 2009 18:43:43 +0000
parents ccb862ffe15a
children 04d77f7cc7fd
files opt.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/opt.c	Thu May 14 06:38:49 2009 +0000
+++ b/opt.c	Thu May 14 18:43:43 2009 +0000
@@ -56,7 +56,7 @@
         return AVERROR(ENOENT);
 
     if(o->max*den < num*intnum || o->min*den > num*intnum) {
-        av_log(NULL, AV_LOG_ERROR, "Value %lf for parameter '%s' out of range\n", num, name);
+        av_log(obj, AV_LOG_ERROR, "Value %lf for parameter '%s' out of range\n", num, name);
         return AVERROR(ERANGE);
     }
 
@@ -168,7 +168,7 @@
                 else if(!strcmp(buf, "all"    )) d= ~0;
                 else {
                     if (error)
-                        av_log(NULL, AV_LOG_ERROR, "Unable to parse option value \"%s\": %s\n", val, error);
+                        av_log(obj, AV_LOG_ERROR, "Unable to parse option value \"%s\": %s\n", val, error);
                     return AVERROR(EINVAL);
                 }
             }