enlarge acceptable delay

This commit is contained in:
wang-bin
2013-12-08 15:08:34 +08:00
parent f24d978b64
commit 45543efa4c
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ void AudioThread::run()
*TODO: 1. how to choose the value
* 2. use last delay when seeking
*/
if (qAbs(d.delay) < 1) {
if (qAbs(d.delay) < 2.718) {
if (d.delay < -kSyncThreshold) { //Speed up. drop frame?
//continue;
}
+1 -2
View File
@@ -28,7 +28,6 @@
#include <QtAV/VideoRenderer.h>
#include <QtAV/ImageConverter.h>
#include <QtCore/QFileInfo>
#include <QtGui/QImage>
#include <QtAV/Statistics.h>
#include <QtAV/Filter.h>
#include <QtAV/FilterContext.h>
@@ -127,7 +126,7 @@ void VideoThread::run()
* 2. use last delay when seeking
*/
bool skip_render = false;
if (qAbs(d.delay) < 1) {
if (qAbs(d.delay) < 2.718) {
if (d.delay < -kSyncThreshold) { //Speed up. drop frame?
//continue;
}