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

Måns Rullgård mans
Thu May 28 00:59:48 CEST 2009


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.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list