Skip to content

Commit

Permalink
Update VideoFileWriter.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
waleswood committed Jul 24, 2020
1 parent 840aba6 commit 2daa9cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Extras/Accord.Video.FFMPEG.GPL/VideoFileWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2daa9cd

Please sign in to comment.