Mercurial > libavcodec.hg
comparison golomb.h @ 7260:3ec34b551aae libavcodec
bitstream: move put_sbits() from flacenc.c to bitstream.h and use it
throughout libavcodec.
author | ramiro |
---|---|
date | Sun, 13 Jul 2008 14:27:48 +0000 |
parents | 1d83e9c34641 |
children | c4a4495715dd |
comparison
equal
deleted
inserted
replaced
7259:9de4bc7d4938 | 7260:3ec34b551aae |
---|---|
467 put_bits(pb, 31, 0); | 467 put_bits(pb, 31, 0); |
468 e -= 31; | 468 e -= 31; |
469 } | 469 } |
470 put_bits(pb, e, 1); | 470 put_bits(pb, e, 1); |
471 if(k) | 471 if(k) |
472 put_bits(pb, k, i&((1<<k)-1)); | 472 put_sbits(pb, k, i); |
473 }else{ | 473 }else{ |
474 while(limit > 31) { | 474 while(limit > 31) { |
475 put_bits(pb, 31, 0); | 475 put_bits(pb, 31, 0); |
476 limit -= 31; | 476 limit -= 31; |
477 } | 477 } |