From 8ee7b59a4afb230fba336bc08a9047f028708bfb Mon Sep 17 00:00:00 2001 From: Fiona Glaser Date: Mon, 4 Oct 2010 13:33:23 -0700 Subject: [PATCH] Fix minor bug in intra pred with intra refresh i8x8 blocks didn't properly avoid predicting from top-right when necessary. This could cause intra refresh to not completely refresh the frame. --- encoder/analyse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encoder/analyse.c b/encoder/analyse.c index d7d0b635..f425d08d 100644 --- a/encoder/analyse.c +++ b/encoder/analyse.c @@ -564,7 +564,7 @@ static ALWAYS_INLINE const int8_t *predict_8x8chroma_mode_available( int i_neigh static ALWAYS_INLINE const int8_t *predict_8x8_mode_available( int force_intra, int i_neighbour, int i ) { - int avoid_topright = force_intra && (i&4); + int avoid_topright = force_intra && (i&1); int idx = i_neighbour & (MB_TOP|MB_LEFT|MB_TOPLEFT); return i4x4_mode_available[avoid_topright][(idx&MB_TOPLEFT)?4:idx]; } -- 2.40.0