Revision 9e96ab03 libavcodec/golomb.h

View differences:

libavcodec/golomb.h
435 435

  
436 436
    e= (i>>k) + 1;
437 437
    if(e<limit){
438
        while(e > 31) {
439
            put_bits(pb, 31, 0);
440
            e -= 31;
441
        }
438 442
        put_bits(pb, e, 1);
439 443
        if(k)
440 444
            put_bits(pb, k, i&((1<<k)-1));

Also available in: Unified diff