From cdeb6bd0cf3e197d1e9cb78ead53dd2ff6f64373 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Wed, 16 Mar 2022 11:46:59 +0000 Subject: [PATCH] Use merge pattern. --- DVD/CSS.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/DVD/CSS.cs b/DVD/CSS.cs index 3da1f517a..66ce1d48a 100644 --- a/DVD/CSS.cs +++ b/DVD/CSS.cs @@ -34,8 +34,6 @@ // Copyright © 2020-2022 Rebecca Wallander // ****************************************************************************/ - - // Based on information gathered from: // ISO/IEC13818-1 Second Edition // Mt. Fuji Commands for Multimedia Devices @@ -697,8 +695,7 @@ public class CSS public static bool CheckRegion(CSS_CPRM.RegionalPlaybackControlState rpc, CSS_CPRM.LeadInCopyright cmi) { // if disc region is all or none, we cannot do anything but try to read it as is - if(cmi.RegionInformation == 0xFF || - cmi.RegionInformation == 0x00) + if(cmi.RegionInformation is 0xFF or 0x00) return true; return (rpc.RegionMask & 0x01) == (cmi.RegionInformation & 0x01) && (rpc.RegionMask & 0x01) != 0x01 ||