[FFmpeg-devel] [PATCH] Lego Mindstorms RSO de/muxer (copied from au.c)
Ronald S. Bultje
rsbultje
Thu Jul 15 17:40:14 CEST 2010
Hi,
On Thu, Jul 15, 2010 at 10:44 AM, Rafa?l Carr? <rafael.carre at gmail.com> wrote:
> Also added a probe function with Mike suggestion (details in the patch
> commit log)
[..]
> + rate = AV_RB16(&p->buf[4]);
> + if (rate < 3000 || rate > 16000) /* XXX: find legal sample rates */
> + return 0;
Certainly a rate of 4000, 8000 or 16000 is more likely to be an
indicator of a valid file than 14867, 3175 or [etc], so I'm thinking
giving higher probe return values for particular samplerate values
makes sense.
Ronald
More information about the ffmpeg-devel
mailing list