[FFmpeg-cvslog] r18825 - trunk/libavcodec/opt.c

stefano subversion
Thu May 14 20:43:43 CEST 2009


Author: stefano
Date: Thu May 14 20:43:43 2009
New Revision: 18825

Log:
Provide a context to av_log() calls in av_set_number2() and
av_set_string3().

Modified:
   trunk/libavcodec/opt.c

Modified: trunk/libavcodec/opt.c
==============================================================================
--- trunk/libavcodec/opt.c	Thu May 14 20:19:42 2009	(r18824)
+++ trunk/libavcodec/opt.c	Thu May 14 20:43:43 2009	(r18825)
@@ -56,7 +56,7 @@ static int av_set_number2(void *obj, con
         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 @@ int av_set_string3(void *obj, const char
                 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);
                 }
             }



More information about the ffmpeg-cvslog mailing list