Commit 12688346 authored by kostya's avatar kostya

handle limit>32 for set_ur_golomb_jpegls()

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6754 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 6ade060a
......@@ -445,6 +445,10 @@ static inline void set_ur_golomb_jpegls(PutBitContext *pb, int i, int k, int lim
if(k)
put_bits(pb, k, i&((1<<k)-1));
}else{
while(limit > 31) {
put_bits(pb, 31, 0);
limit -= 31;
}
put_bits(pb, limit , 1);
put_bits(pb, esc_len, i - 1);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment