lavc: add const to private codec class initialization.
authorAnton Khirnov <anton@khirnov.net>
Sat, 18 Aug 2012 14:21:00 +0000 (16:21 +0200)
committerAnton Khirnov <anton@khirnov.net>
Mon, 17 Sep 2012 13:48:20 +0000 (15:48 +0200)
Silences a warning about discarding const.

libavcodec/utils.c

index b5b0466..23ac500 100644 (file)
@@ -681,7 +681,7 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *code
             goto end;
         }
         if (codec->priv_class) {
-            *(AVClass**)avctx->priv_data= codec->priv_class;
+            *(const AVClass**)avctx->priv_data = codec->priv_class;
             av_opt_set_defaults(avctx->priv_data);
         }
       }