Fix logic error in AVF compatibility check