Fix mpeg-ts detection

When the container name is `mpeg`, it means it is MPEG-PS, while the TS container should have the explicit name `mpeg-ts`.

Signed-off-by: gnattu <gnattuoc@me.com>
This commit is contained in:
gnattu 2024-06-09 21:23:13 +08:00
parent b25d6d1e48
commit 8e5a2f565c

View File

@ -280,8 +280,8 @@ namespace MediaBrowser.MediaEncoding.Probing
splitFormat[i] = "mpeg"; splitFormat[i] = "mpeg";
} }
// Handle MPEG-2 container // Handle MPEG-TS container
else if (string.Equals(splitFormat[i], "mpeg", StringComparison.OrdinalIgnoreCase)) else if (string.Equals(splitFormat[i], "mpegts", StringComparison.OrdinalIgnoreCase))
{ {
splitFormat[i] = "ts"; splitFormat[i] = "ts";
} }