This fixes a VBR bug introduced by raw bits. We should not write any raw
bit before the rate is decided (otherwise they'll end up at the wrong place) and we have to shrink the byte buffer before writing raw bits.
This commit is contained in:
parent
91f07dc125
commit
e610864c74
3 changed files with 11 additions and 3 deletions
|
@ -63,6 +63,7 @@ struct ec_byte_buffer{
|
|||
|
||||
/*Encoding functions.*/
|
||||
void ec_byte_writeinit_buffer(ec_byte_buffer *_b, unsigned char *_buf, long _size);
|
||||
void ec_byte_shrink(ec_byte_buffer *_b, long _size);
|
||||
void ec_byte_writeinit(ec_byte_buffer *_b);
|
||||
void ec_byte_writetrunc(ec_byte_buffer *_b,long _bytes);
|
||||
void ec_byte_write1(ec_byte_buffer *_b,unsigned _value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue