mirror of https://git.ffmpeg.org/ffmpeg.git
(m)jpeg pad/flush with 1 instead of 0, fix by Rik Snel <rsnel@cube.dyndns.org>
Originally committed as revision 280 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
2ddeed44a5
commit
580b82fa24
|
@ -157,6 +157,7 @@ void jput_bits(PutBitContext *s, int n, unsigned int value)
|
||||||
void jflush_put_bits(PutBitContext *s)
|
void jflush_put_bits(PutBitContext *s)
|
||||||
{
|
{
|
||||||
unsigned int b;
|
unsigned int b;
|
||||||
|
s->bit_buf |= ~1U >> s->bit_cnt; /* set all the unused bits to one */
|
||||||
|
|
||||||
while (s->bit_cnt > 0) {
|
while (s->bit_cnt > 0) {
|
||||||
b = s->bit_buf >> 24;
|
b = s->bit_buf >> 24;
|
||||||
|
|
Loading…
Reference in New Issue