[Ffmpeg-devel] Does FLAC decoder support 24-bit files?

Måns Rullgård mru
Tue Oct 25 23:27:51 CEST 2005


Mike Melanson <mike at multimedia.cx> writes:

> Mike Melanson wrote:
>> hey = 1, you = 65537
>
> That was actually a bad test and proved nothing about the truncation
> behavior. However, if you=0x10002, then hey=you yields hey=2. Thus,
> the bottom 16 bits are retained in the assignment.

As per the C specification.  If you want to keep the upper bits,
you'll have shift them yourself.

-- 
M?ns Rullg?rd
mru at inprovide.com





More information about the ffmpeg-devel mailing list