Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer authored on 2011/12/17 12:42:04... | ... |
@@ -1075,7 +1075,7 @@ static void fill_decode_caches(H264Context *h, int mb_type){ |
1075 | 1075 |
AV_ZERO32(h->mv_cache [list][scan8[0] + 4 - 1*8]); |
1076 | 1076 |
h->ref_cache[list][scan8[0] + 4 - 1*8]= topright_type ? LIST_NOT_USED : PART_NOT_AVAILABLE; |
1077 | 1077 |
} |
1078 |
- if(h->ref_cache[list][scan8[0] + 4 - 1*8] < 0){ |
|
1078 |
+ if(h->ref_cache[list][scan8[0] + 2 - 1*8] < 0 || h->ref_cache[list][scan8[0] + 4 - 1*8] < 0){ |
|
1079 | 1079 |
if(USES_LIST(topleft_type, list)){ |
1080 | 1080 |
const int b_xy = h->mb2b_xy [topleft_xy] + 3 + h->b_stride + (h->topleft_partition & 2*h->b_stride); |
1081 | 1081 |
const int b8_xy= 4*topleft_xy + 1 + (h->topleft_partition & 2); |