aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2009-05-14 18:43:43 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-05-14 18:43:43 +0000
commit50f68bdebf79146df8f010bc6bad0b8145077944 (patch)
treebc29cb5deb620f4883b111b8d56c094fcd817f98
parent38efe76877333ab782c8faeb9ba21cb64b5e0409 (diff)
downloadffmpeg-50f68bdebf79146df8f010bc6bad0b8145077944.tar.gz
Provide a context to av_log() calls in av_set_number2() and
av_set_string3(). Originally committed as revision 18825 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/opt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/opt.c b/libavcodec/opt.c
index 76bf0b2f24..a6abcfc2e7 100644
--- a/libavcodec/opt.c
+++ b/libavcodec/opt.c
@@ -56,7 +56,7 @@ static int av_set_number2(void *obj, const char *name, double num, int den, int6
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 *name, const char *val, int alloc, cons
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);
}
}