dvb_sub_decoder use common encoder interface
merging src/cc_encoders_common.c