csrc/wrapper.cpp
@@ -222,7 +222,7 @@ bool exist = access(input_url_.c_str(), 0) == 0; if (exist){ wTime <<= 1; wTime += wTime/2; file_rebootime++; } @@ -233,10 +233,6 @@ if (in->readPacket(&data->getAVPacket()) != 0){ logIt("read packet error, id: %lld", id); break; } if (exist){ // 记录解码的文件有多少帧 file_frame++; } // 非音视频 if (in->notVideoAudio(&data->getAVPacket())){ @@ -263,7 +259,9 @@ id++; //本地文件太快sleep一下 if (exist){ if (exist && in->isVideoPkt(&data->getAVPacket())){ // 记录解码的文件有多少帧 file_frame++; usleep(wTime); }