aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Playback/Progressive/VideoService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-03-01 14:39:46 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-03-01 14:39:46 -0500
commit076a07a54661da993b7ecefd5e294b11b8d90873 (patch)
tree008d8c36e8201cae90b6c8232e4016d9b212df36 /MediaBrowser.Api/Playback/Progressive/VideoService.cs
parent177cc41e3dfd7b2fc5045a183634059260585f20 (diff)
optimize FindByPath
Diffstat (limited to 'MediaBrowser.Api/Playback/Progressive/VideoService.cs')
-rw-r--r--MediaBrowser.Api/Playback/Progressive/VideoService.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/MediaBrowser.Api/Playback/Progressive/VideoService.cs b/MediaBrowser.Api/Playback/Progressive/VideoService.cs
index f13058924..b7e180eca 100644
--- a/MediaBrowser.Api/Playback/Progressive/VideoService.cs
+++ b/MediaBrowser.Api/Playback/Progressive/VideoService.cs
@@ -148,6 +148,11 @@ namespace MediaBrowser.Api.Playback.Progressive
args += " -bsf:v h264_mp4toannexb";
}
+ if (state.RunTimeTicks.HasValue && state.VideoRequest.CopyTimestamps)
+ {
+ args += " -copyts -avoid_negative_ts disabled -start_at_zero";
+ }
+
return args;
}