From: Loren Merritt Date: Sun, 27 Jan 2008 11:09:52 +0000 (+0000) Subject: fix cabac context for nonzero delta_qp of the 2nd mb of a frame in interlaced mode X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=12c833c863c0e119212977d25723431bc66088a4;p=libx264 fix cabac context for nonzero delta_qp of the 2nd mb of a frame in interlaced mode git-svn-id: svn://svn.videolan.org/x264/trunk@727 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/encoder/cabac.c b/encoder/cabac.c index d02ee939..e36744e5 100644 --- a/encoder/cabac.c +++ b/encoder/cabac.c @@ -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