- int refn = h->ref_cache[list][scan8[n]];
- H264Picture *ref = &h->ref_list[list][refn];
- mc_dir_part(h, ref, n, square, height, delta, list,
+ int refn = sl->ref_cache[list][scan8[n]];
+ H264Ref *ref = &sl->ref_list[list][refn];
+ mc_dir_part(h, sl, ref, n, square, height, delta, list,