ec: check that reference pictures have matching parameters before using them.