Commit bd42dac5 authored by arpi_esp's avatar arpi_esp

(m)jpeg pad/flush with 1 instead of 0, fix by Rik Snel <rsnel@cube.dyndns.org>


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@280 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2abef770
...@@ -157,6 +157,7 @@ void jput_bits(PutBitContext *s, int n, unsigned int value) ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment