Do not execute the part of fill_caches() for the loopfilter that overwrites
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 10 Aug 2008 00:38:41 +0000 (00:38 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 10 Aug 2008 00:38:41 +0000 (00:38 +0000)
reference indexes and motion vectors.
Fixes at least:
CVMAQP2_Sony_G

Originally committed as revision 14678 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/h264.c

index e3337fd..e489a10 100644 (file)
@@ -391,7 +391,7 @@ static void fill_caches(H264Context *h, int mb_type, int for_deblock){
                 }
             }
 
-            if((for_deblock || (IS_DIRECT(mb_type) && !h->direct_spatial_mv_pred)) && !FRAME_MBAFF)
+            if(for_deblock || ((IS_DIRECT(mb_type) && !h->direct_spatial_mv_pred) && !FRAME_MBAFF))
                 continue;
 
             if(USES_LIST(topleft_type, list)){