From: Loren Merritt Date: Thu, 10 Feb 2005 21:54:40 +0000 (+0000) Subject: bs_align_1() didn't actually write all ones. (so encoded streams with cabac were... X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=6f298b9d889536c5dc14fc08faa95447a322a1cd;p=x264.git bs_align_1() didn't actually write all ones. (so encoded streams with cabac were technically invalid, though no decoder cares.) Patch by Tuukka Toivonen. git-svn-id: svn://svn.videolan.org/x264/trunk@119 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/common/bs.h b/common/bs.h index 380799f2..e84d6c59 100644 --- a/common/bs.h +++ b/common/bs.h @@ -285,7 +285,7 @@ static inline void bs_align_1( bs_t *s ) { if( s->i_left != 8 ) { - bs_write( s, s->i_left, 1 ); + bs_write( s, s->i_left, ~0 ); } }