Skip to content

Commit

Permalink
--vpp-afs使用時にVFRなどのため長さ0のフレームが発生した場合はdropするようにしてエラーを回避。
Browse files Browse the repository at this point in the history
  • Loading branch information
rigaya committed Dec 10, 2024
1 parent 59c1ae6 commit 2e83c5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion QSVPipeline/rgy_filter_afs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<RGYOpenCLContext> context) :
Expand Down

0 comments on commit 2e83c5c

Please sign in to comment.