On Thu, May 12, 2011 at 09:34:23AM +0100, Måns Rullgård wrote:
> Clément Bœsch <ubi...@gmail.com> writes:
> > --- a/libavformat/oggdec.c
> > +++ b/libavformat/oggdec.c
> > @@ -631,12 +631,9 @@ static int ogg_read_seek(AVFormatContext *s, int 
> > stream_index,
> >  
> >  static int ogg_probe(AVProbeData *p)
> >  {
> > -    if (p->buf[0] == 'O' && p->buf[1] == 'g' &&
> > -        p->buf[2] == 'g' && p->buf[3] == 'S' &&
> > -        p->buf[4] == 0x0 && p->buf[5] <= 0x7 )
> > +    if (!memcmp("OggS", p->buf, 5) && p->buf[5] <= 0x7)
> >          return AVPROBE_SCORE_MAX;
> > -    else
> > -        return 0;
> > +    return 0;
> 
> Looks OK.

Queued.

Diego
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to