changeset 219:5b88ee1abf97 libavcodec

(m)jpeg pad/flush with 1 instead of 0, fix by Rik Snel <rsnel@cube.dyndns.org>
author arpi_esp
date Sat, 26 Jan 2002 00:22:25 +0000
parents 9df2d13e64b2
children 0b234715e205
files common.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/common.c	Thu Jan 24 19:06:47 2002 +0000
+++ b/common.c	Sat Jan 26 00:22:25 2002 +0000
@@ -157,6 +157,7 @@
 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;