mirror of
https://github.com/videolan/vlc.git
synced 2024-12-01 13:55:14 +08:00
Fix avcodec cinepak decoding and favour it.
This commit is contained in:
parent
1750723d84
commit
0378bedc63
@ -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 ***** */
|
||||
|
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user