aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.MediaEncoding/Encoder/EncodingHelper.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-02-09 19:42:57 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-02-09 19:42:57 -0500
commit58fad600c943d2cb6d62a475017c1ec677b86718 (patch)
treea016847225467407adc93935d55f218e80c0c4d3 /MediaBrowser.MediaEncoding/Encoder/EncodingHelper.cs
parent264dda4d3188a8d0a30ad8d09efe04f107b956d6 (diff)
restore changes
Diffstat (limited to 'MediaBrowser.MediaEncoding/Encoder/EncodingHelper.cs')
-rw-r--r--MediaBrowser.MediaEncoding/Encoder/EncodingHelper.cs54
1 files changed, 27 insertions, 27 deletions
diff --git a/MediaBrowser.MediaEncoding/Encoder/EncodingHelper.cs b/MediaBrowser.MediaEncoding/Encoder/EncodingHelper.cs
index 83057dba4..ed9552964 100644
--- a/MediaBrowser.MediaEncoding/Encoder/EncodingHelper.cs
+++ b/MediaBrowser.MediaEncoding/Encoder/EncodingHelper.cs
@@ -1486,33 +1486,33 @@ namespace MediaBrowser.MediaEncoding.Encoder
//inputModifier += " -noaccurate_seek";
}
- //if (!string.IsNullOrWhiteSpace(state.InputContainer))
- //{
- // var inputFormat = GetInputFormat(state.InputContainer);
- // if (!string.IsNullOrWhiteSpace(inputFormat))
- // {
- // inputModifier += " -f " + inputFormat;
- // }
- //}
-
- //if (state.RunTimeTicks.HasValue)
- //{
- // foreach (var stream in state.MediaSource.MediaStreams)
- // {
- // if (!stream.IsExternal && stream.Type != MediaStreamType.Subtitle)
- // {
- // if (!string.IsNullOrWhiteSpace(stream.Codec) && stream.Index != -1)
- // {
- // var decoder = GetDecoderFromCodec(stream.Codec);
-
- // if (!string.IsNullOrWhiteSpace(decoder))
- // {
- // inputModifier += " -codec:" + stream.Index.ToString(_usCulture) + " " + decoder;
- // }
- // }
- // }
- // }
- //}
+ if (!string.IsNullOrWhiteSpace(state.InputContainer))
+ {
+ var inputFormat = GetInputFormat(state.InputContainer);
+ if (!string.IsNullOrWhiteSpace(inputFormat))
+ {
+ inputModifier += " -f " + inputFormat;
+ }
+ }
+
+ if (state.RunTimeTicks.HasValue)
+ {
+ foreach (var stream in state.MediaSource.MediaStreams)
+ {
+ if (!stream.IsExternal && stream.Type != MediaStreamType.Subtitle)
+ {
+ if (!string.IsNullOrWhiteSpace(stream.Codec) && stream.Index != -1)
+ {
+ var decoder = GetDecoderFromCodec(stream.Codec);
+
+ if (!string.IsNullOrWhiteSpace(decoder))
+ {
+ inputModifier += " -codec:" + stream.Index.ToString(_usCulture) + " " + decoder;
+ }
+ }
+ }
+ }
+ }
}
return inputModifier;