Skip to content

Commit

Permalink
add player analysis timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
liangzhuohua committed Jun 13, 2024
1 parent a1f26c8 commit 8a422cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ffmpegDecode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ bool FFmpegDecoder::OpenInput(string &inputFile) {

// 分析超时,退出,可能格式不正确
if(QDateTime::currentDateTime().toSecsSinceEpoch() - *startTime > timeout){
CloseInput();
return false;
}
pFormatCtx->interrupt_callback.callback = nullptr;
Expand Down

0 comments on commit 8a422cf

Please sign in to comment.