diff options
Diffstat (limited to 'examples/alffplay.c')
-rw-r--r-- | examples/alffplay.c | 2 |
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; |