]> granicus.if.org Git - libx264/commitdiff
bs_align_1() didn't actually write all ones. (so encoded streams with cabac were...
authorLoren Merritt <pengvado@videolan.org>
Thu, 10 Feb 2005 21:54:40 +0000 (21:54 +0000)
committerLoren Merritt <pengvado@videolan.org>
Thu, 10 Feb 2005 21:54:40 +0000 (21:54 +0000)
Patch by Tuukka Toivonen.

git-svn-id: svn://svn.videolan.org/x264/trunk@119 df754926-b1dd-0310-bc7b-ec298dee348c

common/bs.h

index 380799f2f97cc021b88c70833d8b198d80522770..e84d6c59aff70bd7acad6547ff7043ba65802ed3 100644 (file)
@@ -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 );
     }
 }