changeset 11163:8070f6a8df50 libavcodec

Direct temporal skiped MBs dont need fill_decode_caches() at all so dont call it for them.
author michael
date Sat, 13 Feb 2010 22:53:44 +0000
parents d9725977b699
children 5516538c109b
files h264.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/h264.h	Sat Feb 13 21:09:38 2010 +0000
+++ b/h264.h	Sat Feb 13 22:53:44 2010 +0000
@@ -1452,7 +1452,7 @@
     {
         // just for fill_caches. pred_direct_motion will set the real mb_type
         mb_type|= MB_TYPE_L0L1|MB_TYPE_DIRECT2|MB_TYPE_SKIP;
-
+        if(h->direct_spatial_mv_pred)
         fill_decode_caches(h, mb_type); //FIXME check what is needed and what not ...
         ff_h264_pred_direct_motion(h, &mb_type);
         mb_type|= MB_TYPE_SKIP;