diff --git a/ffplay.c b/ffplay.c index 4b97ea39ece90626a5429d8f4efa7247867e994e..b042ba7a94a895b22bd6b039ce7664d46137314d 100644 --- a/ffplay.c +++ b/ffplay.c @@ -1531,7 +1531,7 @@ static void step_to_next_frame(VideoState *is) static double compute_target_delay(double delay, VideoState *is) { - double sync_threshold, diff; + double sync_threshold, diff = 0; /* update delay to follow master synchronisation source */ if (get_master_sync_type(is) != AV_SYNC_VIDEO_MASTER) {