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:
d10dc61
)
set_se_golomb can only write 16bits, add a note about this (ok, maybe it's brain...
author
Alex Beregszaszi
<alex@rtfs.hu>
Wed, 12 Oct 2005 22:43:12 +0000
(22:43 +0000)
committer
Alex Beregszaszi
<alex@rtfs.hu>
Wed, 12 Oct 2005 22:43:12 +0000
(22:43 +0000)
Originally committed as revision 4635 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/golomb.h
patch
|
blob
|
history
diff --git
a/libavcodec/golomb.h
b/libavcodec/golomb.h
index
1204a52
..
4ac7463
100644
(file)
--- 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;