diff options
author | Arpi <arpi@thot.banki.hu> | 2002-01-26 00:22:25 +0000 |
---|---|---|
committer | Arpi <arpi@thot.banki.hu> | 2002-01-26 00:22:25 +0000 |
commit | 580b82fa244bcb668069ca0a8803258be7ba77bb (patch) | |
tree | ea8ae9eb415dda40c86536788cdbc9296368c162 /libavcodec/common.c | |
parent | 2ddeed44a58e507a862845ce45b292b31c6ff72e (diff) | |
download | ffmpeg-580b82fa244bcb668069ca0a8803258be7ba77bb.tar.gz |
(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
Diffstat (limited to 'libavcodec/common.c')
-rw-r--r-- | libavcodec/common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/common.c b/libavcodec/common.c index fb73c7eb5c..b3436eb81c 100644 --- a/libavcodec/common.c +++ b/libavcodec/common.c @@ -157,6 +157,7 @@ void jput_bits(PutBitContext *s, int n, unsigned int value) void jflush_put_bits(PutBitContext *s) { unsigned int b; + s->bit_buf |= ~1U >> s->bit_cnt; /* set all the unused bits to one */ while (s->bit_cnt > 0) { b = s->bit_buf >> 24; |