Browse Source

avplay: Do not print a possibly uninitialized value

Initialize `diff` to 0.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
tags/n2.7
Luca Barbato 10 years ago
parent
commit
06f4b1e37a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      avplay.c

+ 1
- 1
avplay.c View File

@@ -1033,7 +1033,7 @@ static void stream_pause(VideoState *is)

static double compute_target_time(double frame_current_pts, VideoState *is)
{
double delay, sync_threshold, diff;
double delay, sync_threshold, diff = 0;

/* compute nominal delay */
delay = frame_current_pts - is->frame_last_pts;


Loading…
Cancel
Save