Mercurial > libavcodec.hg
diff opt.c @ 3735:6c407dc6ab4a libavcodec
Inform the user that a certain AVOption is out of range.
author | takis |
---|---|
date | Wed, 20 Sep 2006 08:28:24 +0000 |
parents | 8b8773577dd9 |
children | 67a63fa775a7 |
line wrap: on
line diff
--- a/opt.c Wed Sep 20 08:27:18 2006 +0000 +++ b/opt.c Wed Sep 20 08:28:24 2006 +0000 @@ -119,8 +119,10 @@ 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;