projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5dc4970
)
handle limit>32 for set_ur_golomb_jpegls()
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Sun, 22 Oct 2006 04:52:15 +0000
(
04:52
+0000)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Sun, 22 Oct 2006 04:52:15 +0000
(
04:52
+0000)
Originally committed as revision 6754 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/golomb.h
patch
|
blob
|
history
diff --git
a/libavcodec/golomb.h
b/libavcodec/golomb.h
index
9e0a50a
..
9bf7aec
100644
(file)
--- a/
libavcodec/golomb.h
+++ b/
libavcodec/golomb.h
@@
-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);
}