summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-02-13 22:53:44 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-02-13 22:53:44 +0000
commite916764675eb9c014b3e233e97d19c7816f0967d (patch)
tree33880530f5b4e021cdd1c9b0069b52a6babd6aa0 /libavcodec
parent78998bf217ba427ec4fbb5d3ae82fff31ab81f2e (diff)
Direct temporal skiped MBs dont need fill_decode_caches() at all so dont call it
for them. Originally committed as revision 21816 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h264.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h
index 2b2243ff81..5c79a6bdda 100644
--- a/libavcodec/h264.h
+++ b/libavcodec/h264.h
@@ -1452,7 +1452,7 @@ static void decode_mb_skip(H264Context *h){
{
// 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;