mirror of
https://github.com/wang-bin/QtAV.git
synced 2026-10-28 19:16:48 +08:00
enlarge acceptable delay
This commit is contained in:
+1
-1
@@ -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
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user