]> git.sesse.net Git - vlc/commitdiff
Fix avcodec cinepak decoding and favour it.
authorLaurent Aimar <fenrir@videolan.org>
Thu, 3 Jul 2008 21:18:13 +0000 (21:18 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Thu, 3 Jul 2008 21:19:26 +0000 (21:19 +0000)
modules/codec/avcodec/video.c
modules/codec/cinepak.c

index 1ba84781832d5582ab313026b8f1666bff788f45..17f5f34ece3a3333f72df220b43175d7be3e44da 100644 (file)
@@ -387,7 +387,7 @@ int InitVideoDec( decoder_t *p_dec, AVCodecContext *p_context,
     if( p_dec->fmt_in.video.p_palette )
         p_sys->p_context->palctrl =
             (AVPaletteControl *)p_dec->fmt_in.video.p_palette;
-    else if( p_sys->i_codec_id != CODEC_ID_MSVIDEO1 )
+    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;
 
     /* ***** Open the codec ***** */
index 3a41336cbc7e8b9a214de4074f5780f39b5b2d4d..b7642ec24911bb3240bfc7db3d6aa194f99b9c93 100644 (file)
@@ -41,7 +41,7 @@ static void CloseDecoder( vlc_object_t * );
 
 vlc_module_begin();
     set_description( N_("Cinepak video decoder") );
-    set_capability( "decoder", 100 );
+    set_capability( "decoder", 50 );
     set_category( CAT_INPUT );
     set_subcategory( SUBCAT_INPUT_VCODEC );
     set_callbacks( OpenDecoder, CloseDecoder );