mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-21 05:00:39 +02:00
fix keyframes
This commit is contained in:
parent
69ce0cd5b5
commit
bc396aa021
|
@ -2220,14 +2220,7 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
|||
_saveStreamCommand.GetParameter(index++).Value = stream.RefFrames;
|
||||
_saveStreamCommand.GetParameter(index++).Value = stream.IsCabac;
|
||||
|
||||
if (stream.KeyFrames == null || stream.KeyFrames.Count == 0)
|
||||
{
|
||||
_saveStreamCommand.GetParameter(index++).Value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
_saveStreamCommand.GetParameter(index++).Value = string.Join(",", stream.KeyFrames.Select(i => i.ToString(CultureInfo.InvariantCulture)).ToArray());
|
||||
}
|
||||
_saveStreamCommand.GetParameter(index++).Value = null;
|
||||
|
||||
_saveStreamCommand.Transaction = transaction;
|
||||
_saveStreamCommand.ExecuteNonQuery();
|
||||
|
@ -2386,7 +2379,6 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
|||
var frames = reader.GetString(26);
|
||||
if (!string.IsNullOrWhiteSpace(frames))
|
||||
{
|
||||
item.KeyFrames = frames.Split(',').Select(i => int.Parse(i, CultureInfo.InvariantCulture)).ToList();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue