diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-06-24 14:20:15 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-06-24 14:20:15 +0400 |
commit | 9e96ab03895d2ce48bdd09b544c7f0ab31b247fe (patch) | |
tree | 87f1050de3e3a8c973e9e4b3a59f2f6180f71df7 /libavcodec/golomb.h | |
parent | 9e0db7d5aae31739b5814c5b9df764856a363de8 (diff) |
first rudimentary version of (Justin Ruggles jruggle earthlink net) flac encoder
Originally committed as revision 5514 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/golomb.h')
-rw-r--r-- | libavcodec/golomb.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/golomb.h b/libavcodec/golomb.h index ef74f15c66..a8221ec29b 100644 --- a/libavcodec/golomb.h +++ b/libavcodec/golomb.h @@ -435,6 +435,10 @@ static inline void set_ur_golomb_jpegls(PutBitContext *pb, int i, int k, int lim e= (i>>k) + 1; if(e<limit){ + while(e > 31) { + put_bits(pb, 31, 0); + e -= 31; + } put_bits(pb, e, 1); if(k) put_bits(pb, k, i&((1<<k)-1)); |