Mercurial > libavcodec.hg
changeset 2905:926ea374947f libavcodec
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..)
author | alex |
---|---|
date | Wed, 12 Oct 2005 22:43:12 +0000 |
parents | 84404858c529 |
children | e578b3572987 |
files | golomb.h |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/golomb.h Wed Oct 12 22:40:10 2005 +0000 +++ b/golomb.h Wed Oct 12 22:43:12 2005 +0000 @@ -391,9 +391,11 @@ } /** - * 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;