fixes #170 - MI aspect ratio
This commit is contained in:
parent
e977548b06
commit
0e7ad811ac
|
@ -431,6 +431,22 @@ namespace MediaBrowser.Server.Implementations.MediaEncoder
|
||||||
|
|
||||||
cancellationToken.ThrowIfCancellationRequested();
|
cancellationToken.ThrowIfCancellationRequested();
|
||||||
|
|
||||||
|
if (result.streams != null)
|
||||||
|
{
|
||||||
|
// Normalize aspect ratio if invalid
|
||||||
|
foreach (var stream in result.streams)
|
||||||
|
{
|
||||||
|
if (string.Equals(stream.display_aspect_ratio, "0:1", StringComparison.OrdinalIgnoreCase))
|
||||||
|
{
|
||||||
|
stream.display_aspect_ratio = string.Empty;
|
||||||
|
}
|
||||||
|
if (string.Equals(stream.sample_aspect_ratio, "0:1", StringComparison.OrdinalIgnoreCase))
|
||||||
|
{
|
||||||
|
stream.sample_aspect_ratio = string.Empty;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (extractChapters && !string.IsNullOrEmpty(standardError))
|
if (extractChapters && !string.IsNullOrEmpty(standardError))
|
||||||
{
|
{
|
||||||
AddChapters(result, standardError);
|
AddChapters(result, standardError);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user