]> git.sesse.net Git - vlc/commitdiff
avcodec: use cast to avoid warning about this const. It's a rare case where we use...
authorDerk-Jan Hartman <hartman@videolan.org>
Sun, 3 Aug 2008 12:19:37 +0000 (14:19 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Sun, 3 Aug 2008 12:21:42 +0000 (14:21 +0200)
modules/codec/avcodec/video.c

index 57131542725c080dddae76c25b0a9b6f2854bc08..22af7fd8078ac80e0ac9dd662293d3fd3f74e0ce 100644 (file)
@@ -337,7 +337,7 @@ int InitVideoDec( decoder_t *p_dec, AVCodecContext *p_context,
         p_sys->p_context->palctrl =
             (AVPaletteControl *)p_dec->fmt_in.video.p_palette;
     else if( p_sys->i_codec_id != CODEC_ID_MSVIDEO1 && p_sys->i_codec_id != CODEC_ID_CINEPAK )
-        p_sys->p_context->palctrl = &palette_control;
+        p_sys->p_context->palctrl = (AVPaletteControl *) &palette_control;
 
     /* ***** Open the codec ***** */
     vlc_mutex_t *lock = var_AcquireMutex( "avcodec" );