From 12eccf326e46c44a96ba87fc672b6020a87ae0cf Mon Sep 17 00:00:00 2001 From: Alexander Eckart Date: Sat, 10 Mar 2012 14:08:10 +0100 Subject: [PATCH] fixed video decoding --- Vocaluxe/Lib/Video/CVideoDecoderFFmpeg.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Vocaluxe/Lib/Video/CVideoDecoderFFmpeg.cs b/Vocaluxe/Lib/Video/CVideoDecoderFFmpeg.cs index b8c38f49..767a9fb9 100644 --- a/Vocaluxe/Lib/Video/CVideoDecoderFFmpeg.cs +++ b/Vocaluxe/Lib/Video/CVideoDecoderFFmpeg.cs @@ -666,7 +666,6 @@ namespace Vocaluxe.Lib.Video if (num == -1) { _BufferFull = true; - EventDecode.Reset(); } else { @@ -743,7 +742,7 @@ namespace Vocaluxe.Lib.Video { float td = _SetTime + _VideoSkipTime - _FrameBuffer[i].time; - if (td > _VideoTimeBase * 2 || td < -1f * _VideoTimeBase * (_FrameBuffer.Length + 1)) + if (td > _VideoTimeBase * 2) { _FrameBuffer[i].displayed = true; }