From 6f298b9d889536c5dc14fc08faa95447a322a1cd Mon Sep 17 00:00:00 2001 From: Loren Merritt Date: Thu, 10 Feb 2005 21:54:40 +0000 Subject: [PATCH] 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 --- common/bs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } } -- 2.47.3