summaryrefslogtreecommitdiff
path: root/libavcodec/golomb.h
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2005-10-12 22:43:12 +0000
committerAlex Beregszaszi <alex@rtfs.hu>2005-10-12 22:43:12 +0000
commite134e10f3788fa2c5d271430a5e308730d1db7fd (patch)
treee3cfaa82dee0b21b22e8b2b052993eebd71f44e9 /libavcodec/golomb.h
parentd10dc61682b057d6f3a59aa23353e4f155f16d11 (diff)
set_se_golomb can only write 16bits, add a note about this (ok, maybe it's brain dead using it with more than 16bits, but..)
Originally committed as revision 4635 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/golomb.h')
-rw-r--r--libavcodec/golomb.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/golomb.h b/libavcodec/golomb.h
index 1204a52e20..4ac74639a0 100644
--- a/libavcodec/golomb.h
+++ b/libavcodec/golomb.h
@@ -391,9 +391,11 @@ static inline void set_te_golomb(PutBitContext *pb, int i, int range){
}
/**
- * write signed exp golomb code.
+ * write signed exp golomb code. 16 bits at most.
*/
static inline void set_se_golomb(PutBitContext *pb, int i){
+// if (i>32767 || i<-32767)
+// av_log(NULL,AV_LOG_ERROR,"value out of range %d\n", i);
#if 0
if(i<=0) i= -2*i;
else i= 2*i-1;