[FFmpeg-devel] [PATCH] new function get_sbits_long()

Måns Rullgård mans
Mon Mar 2 19:18:24 CET 2009


Michael Niedermayer <michaelni at gmx.at> writes:

> On Mon, Mar 02, 2009 at 12:39:05PM -0500, Justin Ruggles wrote:
>> Hi,
>> 
>> I need a get_sbits_long() function to support FLAC files that are more
>> than 24-bit.  There might be a better way to do it, but this works.
>
> only where int is 32bit which isnt guranteed even if likely

I still think we should put a sign_extend() function in mathops.h or
similar.  The need for this keeps coming up, and there is already a
function in alac.c for this purpose.

See also http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/78068
and http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/55360

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




More information about the ffmpeg-devel mailing list