cmdutils: silence warning about incompatible pointer types
authorPaul B Mahol <onemda@gmail.com>
Fri, 30 Aug 2013 10:39:27 +0000 (10:39 +0000)
committerPaul B Mahol <onemda@gmail.com>
Fri, 30 Aug 2013 12:41:36 +0000 (12:41 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
cmdutils.c

index ccb2b98..79870ce 100644 (file)
@@ -500,7 +500,7 @@ void parse_loglevel(int argc, char **argv, const OptionDef *options)
 static const AVOption *opt_find(void *obj, const char *name, const char *unit,
                             int opt_flags, int search_flags)
 {
-    AVOption *o = av_opt_find(obj, name, unit, opt_flags, search_flags);
+    const AVOption *o = av_opt_find(obj, name, unit, opt_flags, search_flags);
     if(o && !o->flags)
         return NULL;
     return o;