From 2e83c5c699782f87abb80bb73d156af60b22153b Mon Sep 17 00:00:00 2001 From: rigaya Date: Tue, 10 Dec 2024 18:10:42 +0900 Subject: [PATCH] =?UTF-8?q?--vpp-afs=E4=BD=BF=E7=94=A8=E6=99=82=E3=81=ABVF?= =?UTF-8?q?R=E3=81=AA=E3=81=A9=E3=81=AE=E3=81=9F=E3=82=81=E9=95=B7?= =?UTF-8?q?=E3=81=950=E3=81=AE=E3=83=95=E3=83=AC=E3=83=BC=E3=83=A0?= =?UTF-8?q?=E3=81=8C=E7=99=BA=E7=94=9F=E3=81=97=E3=81=9F=E5=A0=B4=E5=90=88?= =?UTF-8?q?=E3=81=AFdrop=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?=E3=81=97=E3=81=A6=E3=82=A8=E3=83=A9=E3=83=BC=E3=82=92=E5=9B=9E?= =?UTF-8?q?=E9=81=BF=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- QSVPipeline/rgy_filter_afs.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/QSVPipeline/rgy_filter_afs.cpp b/QSVPipeline/rgy_filter_afs.cpp index b2d442c3..0f127da3 100644 --- a/QSVPipeline/rgy_filter_afs.cpp +++ b/QSVPipeline/rgy_filter_afs.cpp @@ -498,7 +498,8 @@ int64_t afsStreamStatus::get_duration(int64_t iframe) { //iframe + 1がdropならその先のフレームを参照 next_pos = m_pos[(iframe + 3) & 15].pos; } - return next_pos - iframe_pos; + const auto duration = next_pos - iframe_pos; + return (duration > 0) ? duration : AFS_SSTS_DROP; } RGYFilterAfs::RGYFilterAfs(shared_ptr context) :