changeset 11156:81ef4df2c774 libavcodec

Also skip direct/mvd_cache init for skiped blocks. Odd thing is i thought ive tryed this already and it failed previously.
author michael
date Sat, 13 Feb 2010 19:39:18 +0000
parents dad947e53c52
children 625a076b8038
files h264.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)