diff options
author | gero <[email protected]> | 2016-04-22 17:33:00 +0800 |
---|---|---|
committer | gero <[email protected]> | 2016-04-22 17:33:00 +0800 |
commit | cec03f39ae551d68b85f6fd4fb99c00a4f7d759d (patch) | |
tree | 6b1bf98df4ecca94cc1d53af268987f7c7c21d19 | |
parent | 42531703cc1010dd736650024de67ef8ea7d744c (diff) |
fix audio play error in sample
fix audio play error in sample
-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; |