OSDN Git Service

cmdutils: add missing const qualifier
authorMans Rullgard <mans@mansr.com>
Sat, 4 Jun 2011 15:47:15 +0000 (16:47 +0100)
committerMans Rullgard <mans@mansr.com>
Sat, 4 Jun 2011 17:09:01 +0000 (18:09 +0100)
Signed-off-by: Mans Rullgard <mans@mansr.com>
cmdutils.c

index 31866b5..b9a5d1b 100644 (file)
@@ -323,7 +323,7 @@ int opt_default(const char *opt, const char *arg){
         AVCodec *p = NULL;
         AVOutputFormat *oformat = NULL;
         while ((p=av_codec_next(p))){
-            AVClass *c= p->priv_class;
+            const AVClass *c = p->priv_class;
             if(c && av_find_opt(&c, opt, NULL, 0, 0))
                 break;
         }