Apply suggestions from code review

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
pull/7712/head
Nyanmisaka 2 years ago committed by GitHub
parent 5386f06095
commit 9523a1682b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;
}

Loading…
Cancel
Save