[MPlayer-dev-eng] [PATCH] Add support for ARIB STD-B24 captions v4
Diego Biurrun
diego at biurrun.de
Fri Oct 30 14:30:48 CET 2009
On Thu, Oct 29, 2009 at 01:20:03PM -0400, Michael Wu wrote:
> >> --- sub_arib.h (revision 0)
> >> +++ sub_arib.h (revision 0)
> >> @@ -0,0 +1,27 @@
> >> +
> >> +#ifdef CONFIG_ARIB
> >> +
> >> +#include "libass/ass_mp.h"
> >> +
> >> +void arib_process_data_group(unsigned char *data, int len, double
> >> subpts, ass_track_t *track);
> >> +
> >> +#else
> >> +
> >> +void arib_process_data_group(unsigned char *data, int len, double
> >> subpts, void *track) {};
> >> +
> >> +#endif /* CONFIG_ARIB */
> >
> > This #ifdeffery is extremely ugly and unacceptable.
> >
> How do you prefer compiling out features then? You didn't like taking out
> the function call with CONFIG_ARIB and you don't like making the function
> do nothing. How exactly do you want arib_process_data_group to be handled
> if CONFIG_ARIB is off?
Surround the function call by #ifdefs for example.
Diego
More information about the MPlayer-dev-eng
mailing list