Avoid negative shifts in build_table()
authorMåns Rullgård <mans@mansr.com>
Sun, 21 Feb 2010 15:11:57 +0000 (15:11 +0000)
committerMåns Rullgård <mans@mansr.com>
Sun, 21 Feb 2010 15:11:57 +0000 (15:11 +0000)
commit4c4e746566a98340e229831624f74a5636b62b65
tree951f8942a79116ac3e7c241ba6b6e469c4cc8236
parent044a950d8230c881c7e6833f9999498784f3fc76
Avoid negative shifts in build_table()

A shift by a negative amount has undefined behaviour.  Even though
the result of this shift is never used, the shift itself could
cause an exception of some kind.

Originally committed as revision 21939 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/bitstream.c