lavf: remove a pointless check