[FFmpeg-devel] [PATCH] Add support for sndio to libavdevice

Aurelien Jacobs aurel
Wed Aug 11 10:45:49 CEST 2010


On Tue, Aug 10, 2010 at 09:45:50PM -0400, Brad wrote:
> On Tuesday 10 August 2010 16:21:47 Stefano Sabatini wrote:
> > > +AVInputFormat sndio_demuxer = {
> > > +    "sndio",
> > > +    NULL_IF_CONFIG_SMALL("sndio audio capture"),
> > > +    sizeof(AudioData),
> > > +    NULL,
> > > +    audio_read_header,
> > > +    audio_read_packet,
> > > +    audio_read_close,
> > > +    .flags = AVFMT_NOFILE,
> > > +};
> >
> > Possibly always use designated inited fields, I mean:
> > .name      = ...
> > .long_name = ...
> > .init      = ...
> > .blah      = ...
> > ...
> 
> Show me an example of this already in the tree.

libavformat/srtdec.c

Aurel



More information about the ffmpeg-devel mailing list