X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fcodec%2Fdvbsub.c;h=b0ef809dce7d62bc91e5aa92d2c6069278886c53;hb=865d4b77957f3d16f667e2d62de5c423cc68928b;hp=f26013d79595f0b8e998f21217250328332350f3;hpb=a18b713d24e7e08cb27aa0089f8f12efa4b225a9;p=vlc diff --git a/modules/codec/dvbsub.c b/modules/codec/dvbsub.c index f26013d795..b0ef809dce 100644 --- a/modules/codec/dvbsub.c +++ b/modules/codec/dvbsub.c @@ -119,7 +119,7 @@ vlc_module_begin () # define DVBSUB_CFG_PREFIX "dvbsub-" set_description( N_("DVB subtitles decoder") ) set_shortname( N_("DVB subtitles") ) - set_capability( "decoder", 50 ) + set_capability( "decoder", 80 ) set_category( CAT_INPUT ) set_subcategory( SUBCAT_INPUT_SCODEC ) set_callbacks( Open, Close ) @@ -1052,15 +1052,14 @@ static void decode_object( decoder_t *p_dec, bs_t *s ) { decoder_sys_t *p_sys = p_dec->p_sys; dvbsub_region_t *p_region; - int i_segment_length, i_coding_method, i_version, i_id, i; - bool b_non_modify_color; + int i_segment_length, i_coding_method, i_id, i; /* ETSI 300-743 paragraph 7.2.4 * sync_byte, segment_type and page_id have already been processed. */ i_segment_length = bs_read( s, 16 ); i_id = bs_read( s, 16 ); - i_version = bs_read( s, 4 ); + bs_skip( s, 4 ); /* version */ i_coding_method = bs_read( s, 2 ); if( i_coding_method > 1 ) @@ -1090,7 +1089,7 @@ static void decode_object( decoder_t *p_dec, bs_t *s ) msg_Dbg( p_dec, "new object: %i", i_id ); #endif - b_non_modify_color = bs_read( s, 1 ); + bs_skip( s, 1 ); /* non_modify_color */ bs_skip( s, 1 ); /* Reserved */ if( i_coding_method == 0x00 )