[FFmpeg-devel] regression - mpeg2 interlace/topfield flags not set anymore
Michel Bardiaux
mbardiaux
Mon Jan 28 14:25:50 CET 2008
M?ns Rullg?rd wrote:
> Michel Bardiaux wrote:
[snip]
>> Are we 100% sure strtod *should* accept 0x1234? On linux debian etch the
>> man page for strtod says this:
>>
>> "A hexadecimal number consists of a ``0x'' or ``0X'' followed
>> by a nonempty sequence of hexadecimal digits possibly con-
>> taining a radix character, optionally followed by a binary
>> exponent. A binary exponent consists of a ``P'' or ``p'', fol-
>> lowed by an optional plus or minus sign, followed by a non-empty
>> sequence of decimal digits, and indicates multiplication
>> by a power of 2. At least one of radix character and binary
>> exponent must be present."
>>
>> Seems to me 0x1234 is *not* legal since it contains neither radix nor
>> binary exponent...
>>
>> Of course, man pages are not always the best source for standards!
>
> The spec says this:
>
> The expected form of the subject sequence is an optional plus or minus
> sign, then one of the following:
> [...]
> - A 0x or 0X, then a non-empty sequence of hexadecimal digits optionally
> containing a radix character, then an optional binary exponent part
>
> Clearly, they are both optional.
>
> See also http://www.opengroup.org/onlinepubs/009695399/functions/strtod.html,
> in particular the example at the end of the page.
Meaning the man page is again wrong (or at the very least, very badly
written). Annoying but hardly surprising.
>
More information about the ffmpeg-devel
mailing list