# HG changeset patch # User kostya # Date 1161492735 0 # Node ID fb4e436780fb776bc2b694d9000c768f09794362 # Parent 6a05e683e7c44283732090c133f0178a7fa559dd handle limit>32 for set_ur_golomb_jpegls() diff -r 6a05e683e7c4 -r fb4e436780fb golomb.h --- a/golomb.h Sat Oct 21 22:07:01 2006 +0000 +++ b/golomb.h Sun Oct 22 04:52:15 2006 +0000 @@ -445,6 +445,10 @@ if(k) put_bits(pb, k, i&((1< 31) { + put_bits(pb, 31, 0); + limit -= 31; + } put_bits(pb, limit , 1); put_bits(pb, esc_len, i - 1); }