aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkcat <[email protected]>2016-04-22 02:57:50 -0700
committerkcat <[email protected]>2016-04-22 02:57:50 -0700
commit1c736f4eb9b226a4eb9f00fc947be8c867005c65 (patch)
treed55d0af681f5f9d924ea615101065f5a396e6a34
parent3387f230740fb234ced25b53d2a5126f9eb35571 (diff)
parentcec03f39ae551d68b85f6fd4fb99c00a4f7d759d (diff)
Merge pull request #38 from geron-cn/patch-1
fix audio play error in sample alffplay
-rw-r--r--examples/alffplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/alffplay.c b/examples/alffplay.c
index ab67d216..7feaa5ae 100644
--- a/examples/alffplay.c
+++ b/examples/alffplay.c
@@ -350,7 +350,7 @@ static int synchronize_audio(MovieState *movState)
ref_clock = get_master_clock(movState);
diff = ref_clock - get_audio_clock(&movState->audio);
- if(!(diff < AV_NOSYNC_THRESHOLD))
+ if(!(fabs(diff) < AV_NOSYNC_THRESHOLD))
{
/* Difference is TOO big; reset diff stuff */
movState->audio.diff_accum = 0.0;