mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-27 04:16:47 +00:00
adjust params when burning in subtitles
This commit is contained in:
parent
8d4373af5e
commit
a452bc23b2
2 changed files with 13 additions and 4 deletions
|
|
@ -163,6 +163,14 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
|
||||
public bool DeInterlace(string videoCodec, bool forceDeinterlaceIfSourceIsInterlaced)
|
||||
{
|
||||
var videoStream = VideoStream;
|
||||
var isInputInterlaced = videoStream != null && videoStream.IsInterlaced;
|
||||
|
||||
if (!isInputInterlaced)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// Support general param
|
||||
if (BaseRequest.DeInterlace)
|
||||
{
|
||||
|
|
@ -179,8 +187,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
|
||||
if (forceDeinterlaceIfSourceIsInterlaced)
|
||||
{
|
||||
var videoStream = VideoStream;
|
||||
if (videoStream != null && videoStream.IsInterlaced)
|
||||
if (isInputInterlaced)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue