• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

コミットメタ情報

リビジョンcd39daec25c424d9cd7033368c472c75947734d2 (tree)
日時2021-10-05 01:06:59
作者yyagi <yyagi.dtxmania@gmai...>
コミッターyyagi

ログメッセージ

#42987 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"
@@ -6,6 +6,7 @@ using System.Threading.Tasks;
66 using System.Runtime.InteropServices;
77 using DirectShowLib;
88 using SharpDX;
9+using System.Diagnostics;
910
1011 namespace FDK
1112 {
@@ -142,8 +143,11 @@ namespace FDK
142143
143144 public void Seek(int timeInMs)
144145 {
145- int hr = seeker.SetPositions(new DsLong(timeInMs * 10000), AMSeekingSeekingFlags.AbsolutePositioning, null, AMSeekingSeekingFlags.NoPositioning);
146- DsError.ThrowExceptionForHR(hr);
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+ }
147151 hr = control.GetState(timeOutMs, out state); // state is Running
148152 DsError.ThrowExceptionForHR(hr);
149153 }