mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-21 14:53:10 +00:00
Inform the user that a certain AVOption is out of range.
Originally committed as revision 6295 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
076ce01793
commit
fcc9b95653
@ -119,8 +119,10 @@ static AVOption *av_set_number(void *obj, const char *name, double num, int den,
|
|||||||
if(!o || o->offset<=0)
|
if(!o || o->offset<=0)
|
||||||
return NULL;
|
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;
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
dst= ((uint8_t*)obj) + o->offset;
|
dst= ((uint8_t*)obj) + o->offset;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user