mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 05:47:14 -04:00
Apply suggestions from code review
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
parent
5386f06095
commit
9523a1682b
@ -776,7 +776,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
if (directVideoCodec != null)
|
if (directVideoCodec != null)
|
||||||
{
|
{
|
||||||
// merge directVideoCodec to videoCodecs
|
// merge directVideoCodec to videoCodecs
|
||||||
Array.Resize(ref videoCodecs, (videoCodecs?.Length ?? 0) + 1);
|
Array.Resize(ref videoCodecs, videoCodecs.Length + 1);
|
||||||
videoCodecs[^1] = directVideoCodec;
|
videoCodecs[^1] = directVideoCodec;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user