Mercurial > libavcodec.hg
changeset 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 | 6903463caf49 |
children | 1d70bb4e21d6 |
files | opt.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
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;