aboutsummaryrefslogtreecommitdiffstats
path: root/ffplay.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-05-30 00:38:09 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-05-30 00:38:09 +0000
commit7e0140cbd733921485a914a1a6f40512ce4aa1e3 (patch)
tree6d5e6b2759f2a336590022d1bf938018cb65256d /ffplay.c
parent3c895fc098f7637f6d5ec3a9d6766e724a8b9e41 (diff)
downloadffmpeg-7e0140cbd733921485a914a1a6f40512ce4aa1e3.tar.gz
much better AV sync, for some files
Originally committed as revision 3172 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffplay.c b/ffplay.c
index 9035c51ecb..fe5407610c 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -46,7 +46,7 @@
#define SDL_AUDIO_BUFFER_SIZE 1024
/* no AV sync correction is done if below the AV sync threshold */
-#define AV_SYNC_THRESHOLD 0.08
+#define AV_SYNC_THRESHOLD 0.01
/* no AV correction is done if too big error */
#define AV_NOSYNC_THRESHOLD 10.0
@@ -611,7 +611,7 @@ static void video_refresh_timer(void *opaque)
if (is->video_st) {
if (is->pictq_size == 0) {
/* if no picture, need to wait */
- schedule_refresh(is, 40);
+ schedule_refresh(is, 1);
} else {
/* dequeue the picture */
vp = &is->pictq[is->pictq_rindex];