From 580b82fa244bcb668069ca0a8803258be7ba77bb Mon Sep 17 00:00:00 2001 From: Arpi Date: Sat, 26 Jan 2002 00:22:25 +0000 Subject: [PATCH] (m)jpeg pad/flush with 1 instead of 0, fix by Rik Snel Originally committed as revision 280 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/common.c | 1 + 1 file changed, 1 insertion(+) 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;