[FFmpeg-devel] llvm failure : don't do undefined shift

Reimar Döffinger Reimar.Doeffinger
Thu Aug 20 20:10:57 CEST 2009


On Thu, Aug 20, 2009 at 05:52:25PM +0000, matthieu castet wrote:
> I don't know how to fix this, I only found strange that we have "if (n <
> bit_left) {" instead of "if (n <= bit_left) {"

So it gets written as soon as possible.
Anyway one solution is the same as for the le case which uses:
        bit_buf = (bit_left==32)?0:value >> bit_left;
(just that it is  bit_buf = (bit_left==32)?0:bit_buf << bit_left; )



More information about the ffmpeg-devel mailing list