[FFmpeg-devel] [PATCH] rdt.c: ASM rulebook bitrate reading

Michael Niedermayer michaelni
Mon Dec 29 17:03:08 CET 2008


On Mon, Dec 29, 2008 at 11:01:43AM -0500, Ronald S. Bultje wrote:
> Hi,
> 
> On Mon, Dec 29, 2008 at 7:58 AM, Michael Niedermayer <michaelni at gmx.at> wrote:
> > On Sun, Dec 28, 2008 at 06:32:22PM -0500, Ronald S. Bultje wrote:
> >> +        while (*p == ' ' && p < end) p++;
> >> +        if (!(e_end = strchr(p, ',')) || e_end > end)
> >> +            e_end = end;
> >> +        if (!(first && *p == '#')) {
> >> +            if (!strncasecmp(p, "averagebandwidth=", 17))
> >> +                st->codec->bit_rate = atoi(p+17);
> >> +        }
> >> +        p = e_end + 1;
> >> +        first = 0;
> >
> > sscanf(" averagebandwidth=%d", &st->codec->bit_rate);
> 
> Is there case-insensitive sscanf()?

there is %*1[Aa]%*1[Vv]%*1[Ee]...
or you can convert your source to lowwer case first

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

There will always be a question for which you do not know the correct awnser.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081229/8af27f79/attachment.pgp>



More information about the ffmpeg-devel mailing list