Skip some more code that isnt needed for direct MBs.
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 13 Feb 2010 18:23:46 +0000 (18:23 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 13 Feb 2010 18:23:46 +0000 (18:23 +0000)
Originally committed as revision 21798 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/h264.h

index 522a9cfddd77dd9698d6126309f57aa28635057b..7e0180acf5ea24abc5cb8bcef516198406dedfca 100644 (file)
@@ -1026,7 +1026,7 @@ static void fill_decode_caches(H264Context *h, int mb_type){
             *(uint32_t*)h->mv_cache [list][scan8[4 ]]=
             *(uint32_t*)h->mv_cache [list][scan8[12]]= 0;
 
-            if( CABAC ) {
+            if( CABAC && !IS_DIRECT(mb_type)) {
                 /* XXX beurk, Load mvd */
                 if(USES_LIST(top_type, list)){
                     const int b_xy= h->mb2b_xy[top_xy] + 3*h->b_stride;