This does not do any bitstream parsing and will allow moving out other
code in later commits.
sl->ref_count[1] = sl->ref_count[0] = 0;
return ret;
}
- ret = ff_h264_build_ref_list(h, sl);
- if (ret < 0)
- return ret;
}
sl->pwt.use_weight = 0;
if (ret < 0)
return ret;
+ ret = ff_h264_build_ref_list(h, sl);
+ if (ret < 0)
+ return ret;
+
if (h->ps.pps->weighted_bipred_idc == 2 &&
sl->slice_type_nos == AV_PICTURE_TYPE_B) {
implicit_weight_table(h, sl, -1);