[FFmpeg-devel] [PATCH]Improce auto-detection for cdata files

Carl Eugen Hoyos cehoyos
Wed Dec 30 21:14:49 CET 2009


Reimar D?ffinger <Reimar.Doeffinger <at> gmx.de> writes:

> > -    if (b[0] == 0x04 && (b[1] == 0x00 || b[1] == 0x04 || b[1] == 0x0C))
> > +    if (b[0] == 0x04 && (b[1] == 0x00 || b[1] == 0x04 || b[1] == 0x0C) &&
> > +        ((uint32_t *)b)[1] == ((uint32_t *)b)[3] && ((uint32_t *)b)[1])
> >          return AVPROBE_SCORE_MAX/8;
> 
> You should check for a valid sample_rate

I totally agree.
What are valid sample rates?

Carl Eugen




More information about the ffmpeg-devel mailing list