diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-02-13 19:39:18 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-02-13 19:39:18 +0000 |
commit | e2b28acf8904d9adf660c972dc57cded9f0ec373 (patch) | |
tree | 898514c899f9bd0e3f4ee5309577fd9625087573 | |
parent | 09946fb10955d91b766606aba275a765c83f25b1 (diff) | |
download | ffmpeg-e2b28acf8904d9adf660c972dc57cded9f0ec373.tar.gz |
Also skip direct/mvd_cache init for skiped blocks.
Odd thing is i thought ive tryed this already and it failed previously.
Originally committed as revision 21809 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/h264.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h index 4ba8ecb2a9..68c26af36c 100644 --- a/libavcodec/h264.h +++ b/libavcodec/h264.h @@ -1015,7 +1015,7 @@ static void fill_decode_caches(H264Context *h, int mb_type){ 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) |