[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec golomb.h,1.14,1.15

Alex Beregszaszi alex
Thu Oct 13 00:43:15 CEST 2005


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv26838

Modified Files:
	golomb.h 
Log Message:
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..)

Index: golomb.h
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/golomb.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- golomb.h	26 Feb 2005 03:36:03 -0000	1.14
+++ golomb.h	12 Oct 2005 22:43:12 -0000	1.15
@@ -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;





More information about the ffmpeg-cvslog mailing list