Browse Source

Apply suggestions from code review

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
Nyanmisaka 3 years ago
parent
commit
9523a1682b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      MediaBrowser.Model/Dlna/StreamBuilder.cs

+ 1 - 1
MediaBrowser.Model/Dlna/StreamBuilder.cs

@@ -776,7 +776,7 @@ namespace MediaBrowser.Model.Dlna
             if (directVideoCodec != null)
             {
                 // merge directVideoCodec to videoCodecs
-                Array.Resize(ref videoCodecs, (videoCodecs?.Length ?? 0) + 1);
+                Array.Resize(ref videoCodecs, videoCodecs.Length + 1);
                 videoCodecs[^1] = directVideoCodec;
             }