aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code
diff options
context:
space:
mode:
Diffstat (limited to 'Game/Code')
-rw-r--r--Game/Code/Classes/UVideo.pas4
1 files changed, 3 insertions, 1 deletions
diff --git a/Game/Code/Classes/UVideo.pas b/Game/Code/Classes/UVideo.pas
index c0a4b1f6..91a64939 100644
--- a/Game/Code/Classes/UVideo.pas
+++ b/Game/Code/Classes/UVideo.pas
@@ -293,11 +293,13 @@ begin
end;
procedure FFmpegSkip(Time: Single);
+var seek_target: uint64;
begin
VideoSkiptime:=Time;
NegativeSkipTime:=Time;
if VideoSkipTime > 0 then begin
- av_seek_frame(VideoFormatContext,-1,Floor((VideoSkipTime)*1000000),0);
+// av_seek_frame(VideoFormatContext,-1,Floor((VideoSkipTime)*1000000),0);
+ av_seek_frame(VideoFormatContext,VideoStreamIndex,Floor(Time/VideoTimeBase),AVSEEK_FLAG_ANY);
VideoTime:=VideoSkipTime;
end;
end;