[FFmpeg-cvslog] ffplay: fix nosync threshold check in synchronize_audio
Marton Balint
git at videolan.org
Sun Oct 21 19:02:11 CEST 2012
ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Sat Oct 6 13:31:07 2012 +0200| [eaa91ed863a72c71553c913f17c3bf2e70a11271] | committer: Marton Balint
ffplay: fix nosync threshold check in synchronize_audio
Signed-off-by: Marton Balint <cus at passwd.hu>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=eaa91ed863a72c71553c913f17c3bf2e70a11271
---
ffplay.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ffplay.c b/ffplay.c
index b3b09b3..5c5126b 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1899,7 +1899,7 @@ static int synchronize_audio(VideoState *is, int nb_samples)
diff = get_audio_clock(is) - get_master_clock(is);
- if (diff < AV_NOSYNC_THRESHOLD) {
+ if (fabs(diff) < AV_NOSYNC_THRESHOLD) {
is->audio_diff_cum = diff + is->audio_diff_avg_coef * is->audio_diff_cum;
if (is->audio_diff_avg_count < AUDIO_DIFF_AVG_NB) {
/* not enough measures to have a correct estimate */
More information about the ffmpeg-cvslog
mailing list