Commit f56dcf65 authored by takis's avatar takis

Inform the user that a certain AVOption is out of range.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6295 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0f6a4736
......@@ -119,8 +119,10 @@ static AVOption *av_set_number(void *obj, const char *name, double num, int den,
if(!o || o->offset<=0)
return NULL;
if(o->max*den < num*intnum || o->min*den > num*intnum)
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);
return NULL;
}
dst= ((uint8_t*)obj) + o->offset;
......
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