On 16/12/2011 8:31 PM, Michael Niedermayer wrote: > this does not work with 32bit > > for example consider 0x40000000 and post_shift of 2 (or 1) > it will be 0 or worse before it gets cliped correctly to 0x7FFFFFFF Indeed you are correct. Fixed patch incoming. - Derek