• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqtwindows誰得cocoapythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

Commit MetaInfo

修订版80fa90fdd2d2c45a56639e6a14775e9e0d4cef3f (tree)
时间2021-10-05 21:56:46
作者yyagi <yyagi.dtxmania@gmai...>
Commiteryyagi

Log Message

#42987 Again Fixed failing to seek the tail of mp4 video (by using DTXCreator + DTXMania). (thanks to joe21121)

更改概述

  • delete: "FDK/\343\202\263\343\203\274\343\203\211/04.\343\202\260\343\203\251\343\203\225\343\202\243\343\203\203\343\202\257/CAviDS.cs"

差异

--- "a/FDK/\343\202\263\343\203\274\343\203\211/04.\343\202\260\343\203\251\343\203\225\343\202\243\343\203\203\343\202\257/CAviDS.cs"
+++ "b/FDK/\343\202\263\343\203\274\343\203\211/04.\343\202\260\343\203\251\343\203\225\343\202\243\343\203\203\343\202\257/CAviDS.cs"
@@ -143,11 +143,8 @@ namespace FDK
143143
144144 public void Seek(int timeInMs)
145145 {
146- int hr = seeker.SetPositions( DsLong.FromInt64((long)(timeInMs * 10000)), AMSeekingSeekingFlags.AbsolutePositioning, null, AMSeekingSeekingFlags.NoPositioning);
147- if ( (uint)hr != 0x80070057 ) // E_INVALIDARG. It tend to occur in seeking to the tail-part in mp4 file. Even if we ignore the error, the seek seems success,
148- {
149- DsError.ThrowExceptionForHR(hr);
150- }
146+ int hr = seeker.SetPositions( new DsLong( (long)timeInMs * 10000 ), AMSeekingSeekingFlags.AbsolutePositioning, null, AMSeekingSeekingFlags.NoPositioning );
147+ DsError.ThrowExceptionForHR(hr);
151148 hr = control.GetState(timeOutMs, out state); // state is Running
152149 DsError.ThrowExceptionForHR(hr);
153150 }