diff options
| author | Luis Miguel Almánzar <ruisu15@gmail.com> | 2013-10-28 20:35:10 -0400 |
|---|---|---|
| committer | Luis Miguel Almánzar <ruisu15@gmail.com> | 2013-10-28 20:35:10 -0400 |
| commit | 67354bde5fc8dbf3520c419e2936bacf34e429a8 (patch) | |
| tree | 7f484a193eec083eb48a1532eb09f9131f6f9401 /MediaBrowser.Api/Playback/BaseStreamingService.cs | |
| parent | d77122ba0f3c3ca71bfa4c8fa5b25bb3c3f0f1dc (diff) | |
| parent | 8bd7df410ce1c10cbcc5a223138226bb6986e8b8 (diff) | |
Merge branch 'master' of github.com:MediaBrowser/MediaBrowser
Diffstat (limited to 'MediaBrowser.Api/Playback/BaseStreamingService.cs')
| -rw-r--r-- | MediaBrowser.Api/Playback/BaseStreamingService.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs index 646230160..31166ae2a 100644 --- a/MediaBrowser.Api/Playback/BaseStreamingService.cs +++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs @@ -269,7 +269,7 @@ namespace MediaBrowser.Api.Playback // If fixed dimensions were supplied if (request.Width.HasValue && request.Height.HasValue) { - return string.Format(" -vf \"scale={0}:{1}{2}\"", request.Width.Value, request.Height.Value, assSubtitleParam); + return string.Format(" -vf \"scale=trunc({0}/2)*2:trunc({1}/2)*2{2}\"", request.Width.Value, request.Height.Value, assSubtitleParam); } var isH264Output = outputVideoCodec.Equals("libx264", StringComparison.OrdinalIgnoreCase); |
