[FFmpeg-cvslog] r15410 - trunk/libavcodec/h264.c

michael subversion
Thu Sep 25 02:41:49 CEST 2008


Author: michael
Date: Thu Sep 25 02:41:49 2008
New Revision: 15410

Log:
Fix CAVLC+8x8+MBAFF loop filter.
Fixes FREXT02_JVC_C.


Modified:
   trunk/libavcodec/h264.c

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	(original)
+++ trunk/libavcodec/h264.c	Thu Sep 25 02:41:49 2008
@@ -6383,8 +6383,10 @@ static void filter_mb( H264Context *h, i
                 if( IS_INTRA( s->current_picture.mb_type[mbn_xy] ) )
                     bS[i] = 4;
                 else if( h->non_zero_count_cache[12+8*(i>>1)] != 0 ||
-                         /* FIXME: with 8x8dct + cavlc, should check cbp instead of nnz */
-                         h->non_zero_count[mbn_xy][MB_FIELD ? i&3 : (i>>2)+(mb_y&1)*2] )
+                         ((!h->pps.cabac && IS_8x8DCT(s->current_picture.mb_type[mbn_xy])) ?
+                            (h->cbp_table[mbn_xy] & ((MB_FIELD ? (i&2) : (mb_y&1)) ? 8 : 2))
+                                                                       :
+                            h->non_zero_count[mbn_xy][MB_FIELD ? i&3 : (i>>2)+(mb_y&1)*2]))
                     bS[i] = 2;
                 else
                     bS[i] = 1;




More information about the ffmpeg-cvslog mailing list