diff --git a/src/N_m3u8DL-RE/Util/MP4DecryptUtil.cs b/src/N_m3u8DL-RE/Util/MP4DecryptUtil.cs index 218f7ad..7afe7db 100644 --- a/src/N_m3u8DL-RE/Util/MP4DecryptUtil.cs +++ b/src/N_m3u8DL-RE/Util/MP4DecryptUtil.cs @@ -86,7 +86,7 @@ namespace N_m3u8DL_RE.Util using var stream = new FileStream(file, FileMode.Open, FileAccess.Read, FileShare.Read); using var reader = new StreamReader(stream); var line = ""; - while (!string.IsNullOrEmpty(line = await reader.ReadLineAsync())) + while ((line = await reader.ReadLineAsync()) != null) { if (line.Trim().StartsWith(kid)) {