# HG changeset patch # User michael # Date 1266089958 0 # Node ID 81ef4df2c7744da67f054e87de2b94ddc64740af # Parent dad947e53c526731f017434902e7956dfb47f633 Also skip direct/mvd_cache init for skiped blocks. Odd thing is i thought ive tryed this already and it failed previously. diff -r dad947e53c52 -r 81ef4df2c774 h264.h --- a/h264.h Sat Feb 13 19:00:51 2010 +0000 +++ b/h264.h Sat Feb 13 19:39:18 2010 +0000 @@ -1015,7 +1015,7 @@ if((IS_SKIP(mb_type) || IS_DIRECT(mb_type)) && !FRAME_MBAFF) continue; - if(!IS_DIRECT(mb_type)) { + if(!(mb_type&(MB_TYPE_SKIP|MB_TYPE_DIRECT2))) { h->ref_cache[list][scan8[5 ]+1] = h->ref_cache[list][scan8[7 ]+1] = h->ref_cache[list][scan8[13]+1] = //FIXME remove past 3 (init somewhere else)