diff --git a/src/decoder/dvpp/DvppDecoder.cpp b/src/decoder/dvpp/DvppDecoder.cpp index 74e3601..81ea7f9 100755 --- a/src/decoder/dvpp/DvppDecoder.cpp +++ b/src/decoder/dvpp/DvppDecoder.cpp @@ -519,7 +519,7 @@ void DvppDecoder::read_thread() { #endif nSended = sendPkt(vdecChannelDesc, pkt, frame_nb); - if(!m_bReal && frame_nb > 20 && m_avg_decode_time > 0) + if(frame_nb > 20 && m_avg_decode_time > 0) { // 针对文件,根据解码时间做延时,避免占用过多显存 std::this_thread::sleep_for(std::chrono::milliseconds(m_avg_decode_time));