[FFmpeg-devel] [PATCH] get/put_{le,be}_{float,double}

Daniel Verkamp daniel
Thu May 28 01:20:33 CEST 2009

2009/5/27 M?ns Rullg?rd <mans at mansr.com>:
> Daniel Verkamp <daniel at drv.nu> writes:
>> Hi,
>> Attached is a patch to implement reading and writing of floating-point
>> numbers in ByteIOContexts.
>> It assumes that floating-point numbers are stored in IEEE 754 format,
>> and it uses unions to do type punning; I'd be interested in any
>> cleaner way to do this, but the current code works (at least on x86 -
>> testing welcome).
> It will fail on ARM FPA and SH-4.

Ok, just found av_int2dbl and friends - please ignore this patch. :)

-- Daniel Verkamp

More information about the ffmpeg-devel mailing list