Commit adb5d4bf authored by Yasuhiro Ikeda's avatar Yasuhiro Ikeda Committed by Fiona Glaser

Save more memory with weightp in >8-bit

parent 031b37d3
......@@ -272,8 +272,8 @@ int x264_macroblock_cache_allocate( x264_t *h )
luma_plane_size = h->fdec->i_stride[0] * (h->mb.i_mb_height*16+2*i_padv);
if( h->param.analyse.i_weighted_pred == X264_WEIGHTP_SMART )
//SMART can weight one ref and one offset -1
numweightbuf = 2;
//smart can weight one ref and one offset -1 in 8-bit
numweightbuf = 1 + (BIT_DEPTH == 8);
else
//simple only has one weighted ref
numweightbuf = 1;
......
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