git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
076ce01
)
Inform the user that a certain AVOption is out of range.
author
Panagiotis Issaris
<takis.issaris@uhasselt.be>
Wed, 20 Sep 2006 08:28:24 +0000
(08:28 +0000)
committer
Panagiotis Issaris
<takis.issaris@uhasselt.be>
Wed, 20 Sep 2006 08:28:24 +0000
(08:28 +0000)
Originally committed as revision 6295 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/opt.c
patch
|
blob
|
history
diff --git
a/libavcodec/opt.c
b/libavcodec/opt.c
index
0de7c18
..
10528e8
100644
(file)
--- a/
libavcodec/opt.c
+++ b/
libavcodec/opt.c
@@
-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;