amfenc: Ensure that the software format of hardware frames is valid