avcodec/hcadec: Check scale_factors