Add proper const declaration to a cast, fixes a warning
authorEli Friedman <eli.friedman@gmail.com>
Sun, 27 Jun 2010 17:33:52 +0000 (17:33 +0000)
committerMartin Storsjö <martin@martin.st>
Sun, 27 Jun 2010 17:33:52 +0000 (17:33 +0000)
Patch by Eli Friedman, eli dot friedman at gmail

Originally committed as revision 23827 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/avio.c

index 6ea0e9e..0ad4f96 100644 (file)
@@ -121,7 +121,7 @@ static int url_alloc_for_protocol (URLContext **puc, struct URLProtocol *up,
     if (up->priv_data_size) {
         uc->priv_data = av_mallocz(up->priv_data_size);
         if (up->priv_data_class) {
-            *(AVClass**)uc->priv_data = up->priv_data_class;
+            *(const AVClass**)uc->priv_data = up->priv_data_class;
             av_opt_set_defaults(uc->priv_data);
         }
     }