From 0fe25187e5be169827133598527b5996f4daa5ab Mon Sep 17 00:00:00 2001 From: SirLynix Date: Thu, 2 Feb 2023 21:00:51 +0100 Subject: [PATCH] Fix FFMpeg plugin --- plugins/FFmpeg/Plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/FFmpeg/Plugin.cpp b/plugins/FFmpeg/Plugin.cpp index fbfd78f1a..1e69925e8 100644 --- a/plugins/FFmpeg/Plugin.cpp +++ b/plugins/FFmpeg/Plugin.cpp @@ -131,7 +131,7 @@ namespace return Nz::Ok(); } - bool DecodeNextFrame(void* frameBuffer, Nz::UInt64* frameTime) override + bool DecodeNextFrame(void* frameBuffer, Nz::Time* frameTime) override { AVPacket packet; @@ -144,7 +144,7 @@ namespace if (frameTime) { AVRational timebase = m_formatContext->streams[m_videoStream]->time_base; - *frameTime = 1000 * m_formatContext->streams[m_videoStream]->duration * timebase.num / timebase.den; + *frameTime = Nz::Time::Milliseconds(1000 * m_formatContext->streams[m_videoStream]->duration * timebase.num / timebase.den); } return false;