From f2b3763736705b3459ded5deaed36a674d4f4602 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 13 Feb 2010 18:23:46 +0000 Subject: [PATCH] Skip some more code that isnt needed for direct MBs. Originally committed as revision 21798 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/h264.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/h264.h b/libavcodec/h264.h index 522a9cf..7e0180a 100644 --- a/libavcodec/h264.h +++ b/libavcodec/h264.h @@ -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; -- 2.7.4