mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-23 15:30:56 -04:00
Merge branch 'dev' of https://github.com/MediaBrowser/Emby into dev
This commit is contained in:
commit
23d65f4871
@ -114,6 +114,12 @@ namespace MediaBrowser.MediaEncoding.Probing
|
|||||||
/// <value>The width.</value>
|
/// <value>The width.</value>
|
||||||
public int width { get; set; }
|
public int width { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the refs.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>The refs.</value>
|
||||||
|
public int refs { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the height.
|
/// Gets or sets the height.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -189,6 +189,11 @@ namespace MediaBrowser.MediaEncoding.Probing
|
|||||||
|
|
||||||
// http://stackoverflow.com/questions/17353387/how-to-detect-anamorphic-video-with-ffprobe
|
// http://stackoverflow.com/questions/17353387/how-to-detect-anamorphic-video-with-ffprobe
|
||||||
stream.IsAnamorphic = string.Equals(streamInfo.sample_aspect_ratio, "0:1", StringComparison.OrdinalIgnoreCase);
|
stream.IsAnamorphic = string.Equals(streamInfo.sample_aspect_ratio, "0:1", StringComparison.OrdinalIgnoreCase);
|
||||||
|
|
||||||
|
if (streamInfo.refs > 0)
|
||||||
|
{
|
||||||
|
stream.RefFrames = streamInfo.refs;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -927,9 +932,7 @@ namespace MediaBrowser.MediaEncoding.Probing
|
|||||||
|
|
||||||
private void UpdateFromMediaInfo(MediaSourceInfo video, MediaStream videoStream)
|
private void UpdateFromMediaInfo(MediaSourceInfo video, MediaStream videoStream)
|
||||||
{
|
{
|
||||||
if (video.Protocol == MediaProtocol.File)
|
if (video.Protocol == MediaProtocol.File && videoStream != null)
|
||||||
{
|
|
||||||
if (videoStream != null)
|
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -940,7 +943,11 @@ namespace MediaBrowser.MediaEncoding.Probing
|
|||||||
videoStream.IsCabac = result.IsCabac ?? videoStream.IsCabac;
|
videoStream.IsCabac = result.IsCabac ?? videoStream.IsCabac;
|
||||||
videoStream.IsInterlaced = result.IsInterlaced ?? videoStream.IsInterlaced;
|
videoStream.IsInterlaced = result.IsInterlaced ?? videoStream.IsInterlaced;
|
||||||
videoStream.BitDepth = result.BitDepth ?? videoStream.BitDepth;
|
videoStream.BitDepth = result.BitDepth ?? videoStream.BitDepth;
|
||||||
videoStream.RefFrames = result.RefFrames;
|
videoStream.RefFrames = result.RefFrames ?? videoStream.RefFrames;
|
||||||
|
}
|
||||||
|
catch (TypeLoadException)
|
||||||
|
{
|
||||||
|
// This is non-essential. Don't spam the log
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
@ -950,4 +957,3 @@ namespace MediaBrowser.MediaEncoding.Probing
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -92,6 +92,7 @@ namespace MediaBrowser.Server.Mac
|
|||||||
ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(delegate { return true; });
|
ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(delegate { return true; });
|
||||||
|
|
||||||
var fileSystem = new ManagedFileSystem(new PatternsLogger(logManager.GetLogger("FileSystem")), false, true);
|
var fileSystem = new ManagedFileSystem(new PatternsLogger(logManager.GetLogger("FileSystem")), false, true);
|
||||||
|
fileSystem.AddShortcutHandler(new MbLinkShortcutHandler(fileSystem));
|
||||||
|
|
||||||
var nativeApp = new NativeApp();
|
var nativeApp = new NativeApp();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user