Commit 50cae3cf authored by Fiona Glaser's avatar Fiona Glaser

Fix satd predictors with high bit depth

Resulted in odd CRF-mode results with --no-mbtree, as well as suboptimal VBV handling.
parent d50760c1
......@@ -1647,5 +1647,9 @@ int x264_rc_analyse_slice( x264_t *h )
}
}
return cost;
if( BIT_DEPTH > 8 )
for( int y = 0; y < h->mb.i_mb_height; y++ )
h->fdec->i_row_satd[y] >>= (BIT_DEPTH - 8);
return cost >> (BIT_DEPTH - 8);
}
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