[Ffmpeg-devel] CDXA in libavformat [patch]

Michael Niedermayer michaelni
Thu Aug 24 21:24:23 CEST 2006


Hi

On Thu, Aug 24, 2006 at 04:10:23PM +0200, Allan Sandfeld Jensen wrote:
[...]
> > [...]
> >
> > > +static int cdxa_probe(AVProbeData *p)
> > > +{
> > > +    /* check file header */
> > > +    if (p->buf_size <= 32)
> > > +        return 0;
> > > +    if (p->buf[0] == 'R' && p->buf[1] == 'I' &&
> > > +        p->buf[2] == 'F' && p->buf[3] == 'F' &&
> > > +        p->buf[8] == 'C' && p->buf[9] == 'D' &&
> > > +        p->buf[10] == 'X' && p->buf[11] == 'A')
> > > +        return AVPROBE_SCORE_MAX;
> > > +    else
> > > +        return 0;
> > > +}
> >
> > that could be put in mpegps_probe()
> >
> Okay

patch looks ok

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is




More information about the ffmpeg-devel mailing list