]> granicus.if.org Git - libx264/commitdiff
fix cabac context for nonzero delta_qp of the 2nd mb of a frame in interlaced mode
authorLoren Merritt <pengvado@videolan.org>
Sun, 27 Jan 2008 11:09:52 +0000 (11:09 +0000)
committerLoren Merritt <pengvado@videolan.org>
Sun, 27 Jan 2008 11:09:52 +0000 (11:09 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@727 df754926-b1dd-0310-bc7b-ec298dee348c

encoder/cabac.c

index d02ee93989f18c1627c7bcb30796c94cc194a12f..e36744e54204991b037f6144b27a1af63dcced09 100644 (file)
@@ -357,7 +357,7 @@ static void x264_cabac_mb_qp_delta( x264_t *h, x264_cabac_t *cb )
     int ctx;
 
     /* No need to test for PCM / SKIP */
-    if( h->mb.i_neighbour && h->mb.i_last_dqp != 0 &&
+    if( h->mb.i_last_dqp &&
         ( h->mb.type[i_mbn_xy] == I_16x16 || (h->mb.cbp[i_mbn_xy]&0x3f) ) )
         ctx = 1;
     else