]> granicus.if.org Git - libx264/commitdiff
c89 compile fix
authorLoren Merritt <pengvado@videolan.org>
Sun, 22 Apr 2007 03:37:56 +0000 (03:37 +0000)
committerLoren Merritt <pengvado@videolan.org>
Sun, 22 Apr 2007 03:37:56 +0000 (03:37 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@652 df754926-b1dd-0310-bc7b-ec298dee348c

common/cabac.c

index 6d9d9ac0e80d9071d0f8c2e316adf00a16d45fe8..2996d33c9057767cb4c6cd824c99185ed15d0f06 100644 (file)
@@ -867,9 +867,9 @@ static inline void x264_cabac_putbyte( x264_cabac_t *cb )
         }
         else
         {
+            int carry = out & 0x100;
             if( cb->p + cb->i_bytes_outstanding + 1 >= cb->p_end )
                 return;
-            int carry = out & 0x100;
             if( carry )
             {
                 // this can't happen on the first byte (buffer underrun),