Commit 8b0a1f70 authored by stefano's avatar stefano

Provide a context to av_log() calls in av_set_number2() and

av_set_string3().


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18825 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 148369a9
......@@ -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);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment