Fix avcodec cinepak decoding and favour it.

This commit is contained in:
Laurent Aimar 2008-07-03 21:18:13 +00:00
parent 1750723d84
commit 0378bedc63
2 changed files with 2 additions and 2 deletions

View 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 ***** */

View 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 );