[FFmpeg-devel] [PATCH] rdt.c: ASM rulebook bitrate reading
Ronald S. Bultje
rsbultje
Mon Dec 29 17:01:43 CET 2008
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()?
Ronald
More information about the ffmpeg-devel
mailing list