On Fri, 23 Jan 2015 04:42:22 +0100 Michael Niedermayer <michae...@gmx.at> wrote:
> From: Shan <shan...@gmail.com> > > Patch fixed by Shan so it builds and passes fate > > version 2.5: > diff --git a/MAINTAINERS b/MAINTAINERS > index 13b211e..ae7610b 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -267,6 +267,7 @@ Codecs: > ulti* Kostya Shishkov > v410*.c Derek Buitenhuis > vb.c Kostya Shishkov > + vbidec.c Shan Weber vbisubdec.c > +#define VBI_CLASS(c,o)\ > +static const AVClass c##_decoder_class = {\ > + .class_name = #c" decoder",\ > + .item_name = av_default_item_name,\ > + .option = o,\ > + .version = LIBAVUTIL_VERSION_INT,\ > +}; > + > +#define VBI_DECODE(l_,i_,d_) \ > +AVCodec ff_ ## l_ ## _decoder = {\ > + .name = #l_,\ > + .long_name = NULL_IF_CONFIG_SMALL(d_ " subtitle"),\ > + .type = AVMEDIA_TYPE_SUBTITLE,\ > + .id = AV_CODEC_ID_##i_,\ > + .priv_data_size = sizeof(VBICodecContext),\ > + .init = vbi_subtitle_decode_init,\ > + .decode = vbi_subtitle_decode_frame,\ > + .priv_class = &l_##_decoder_class,\ something weird about this? what if all decoders are enabled? (not important to resend patch for these, just pointing it out) -compn _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel