Browse code

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

Alex Beregszaszi authored on 2005/10/13 07:43:12
Showing 1 changed files
... ...
@@ -391,9 +391,11 @@ static inline void set_te_golomb(PutBitContext *pb, int i, int range){
391 391
 }
392 392
 
393 393
 /**
394
- * write signed exp golomb code.
394
+ * write signed exp golomb code. 16 bits at most.
395 395
  */
396 396
 static inline void set_se_golomb(PutBitContext *pb, int i){
397
+//    if (i>32767 || i<-32767)
398
+//	av_log(NULL,AV_LOG_ERROR,"value out of range %d\n", i);
397 399
 #if 0 
398 400
     if(i<=0) i= -2*i;
399 401
     else     i=  2*i-1;