[Ffmpeg-cvslog] r6295 - trunk/libavcodec/opt.c

takis subversion
Wed Sep 20 10:28:24 CEST 2006


Author: takis
Date: Wed Sep 20 10:28:24 2006
New Revision: 6295

Modified:
   trunk/libavcodec/opt.c

Log:
Inform the user that a certain AVOption is out of range.


Modified: trunk/libavcodec/opt.c
==============================================================================
--- trunk/libavcodec/opt.c	(original)
+++ trunk/libavcodec/opt.c	Wed Sep 20 10:28:24 2006
@@ -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;
 




More information about the ffmpeg-cvslog mailing list