From 2daa9cdb2e462296d1d837e88c963b88c8bb446e Mon Sep 17 00:00:00 2001 From: waleswood Date: Fri, 24 Jul 2020 18:39:53 +0800 Subject: [PATCH] Update VideoFileWriter.cpp fixed #2138 --- Sources/Extras/Accord.Video.FFMPEG.GPL/VideoFileWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Extras/Accord.Video.FFMPEG.GPL/VideoFileWriter.cpp b/Sources/Extras/Accord.Video.FFMPEG.GPL/VideoFileWriter.cpp index 3efc8a53f..b05ad3019 100644 --- a/Sources/Extras/Accord.Video.FFMPEG.GPL/VideoFileWriter.cpp +++ b/Sources/Extras/Accord.Video.FFMPEG.GPL/VideoFileWriter.cpp @@ -759,7 +759,7 @@ namespace Accord { } if (timestamp >= TimeSpan::Zero) - data->video_st.next_pts = TimeSpanToPTS(timestamp, data->video_st.st, data->video_st.enc); + data->video_st.next_pts = TimeSpanToPTS(timestamp, data->video_st.st, data->video_st.enc)*0.5; data->send_video_frame(&data->video_st, (uint64_t*)bitmapData->Scan0.ToPointer(), bitmapData->Stride); }