# HG changeset patch # User takis # Date 1158740904 0 # Node ID 6c407dc6ab4af9743ab4eeca14b589965c3d1a70 # Parent 6903463caf49bf0a526b3debe495128fadf2c268 Inform the user that a certain AVOption is out of range. diff -r 6903463caf49 -r 6c407dc6ab4a opt.c --- 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;