Fix get_ur_golomb_jpegls() with A32_BITSTREAM_READER
authorMåns Rullgård <mans@mansr.com>
Tue, 24 Feb 2009 01:41:44 +0000 (01:41 +0000)
committerMåns Rullgård <mans@mansr.com>
Tue, 24 Feb 2009 01:41:44 +0000 (01:41 +0000)
commitd4f2a6250aa0598a4a6414a3eb34e4f462b290b0
treec063187c8b51f3b1bb6f725ebccada6c6f1b4627
parentd3bcbf57a9f4b6d9b48524522fb05b553f786312
Fix get_ur_golomb_jpegls() with A32_BITSTREAM_READER

If k==0, log==0 can indicate that the coded value uses more than
MIN_CACHE_BITS bits.  With MIN_CACHE_BITS==32, the fast branch is
incorrectly taken in this case unless explicitly forbidden.

Originally committed as revision 17550 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/golomb.h