[Ffmpeg-devel] Re: [PATCH] mov stsd audio version 2

Corey Hickey bugfood-ml
Sat Mar 4 01:35:47 CET 2006


Baptiste COUDURIER wrote:
>>I'm not sure how, but if the chars were read into a double
>>(endian-switched if necessary) and then cast to int it should work
>>properly. Reading the value into a double is the hard part, though,
>>since you can't use bitwise operators (and, even so, is a double
>>universally 64-bit?). The conversion might have to be done manually.
> 
> Maybe av_int2dbl ?

Nice. I didn't find that earlier. :)

> I tried this way and it seems to be better. Patch attached. What do you
> think ?

Works fine for me.

-Corey





More information about the ffmpeg-devel mailing list