Commit 8ee7b59a authored by Fiona Glaser's avatar Fiona Glaser
Browse files

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.
parent a8686610
...@@ -564,7 +564,7 @@ static ALWAYS_INLINE const int8_t *predict_8x8chroma_mode_available( int i_neigh ...@@ -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 ) 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); int idx = i_neighbour & (MB_TOP|MB_LEFT|MB_TOPLEFT);
return i4x4_mode_available[avoid_topright][(idx&MB_TOPLEFT)?4:idx]; return i4x4_mode_available[avoid_topright][(idx&MB_TOPLEFT)?4:idx];
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment