diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-12-15 15:27:30 +0200 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-12-15 15:27:30 +0200 |
commit | 1598302be65c77c107330dc46fd0dabface3112d (patch) | |
tree | 462ad21d6437539f3e2cf7ad7d7581e0989fa090 /stream | |
parent | 8e77ab12b812106f929f349bf4ceb495989bb23b (diff) |
Fix printf format strings with invalid '%lf' conversion
Some code used an invalid '%lf' conversion specification for double
arguments. Maybe they were written that way due to confusion with
scanf where doubles are indicated by '%lf'; however it is not a valid
printf format specifier. Change those cases to use '%f'.
Diffstat (limited to 'stream')
-rw-r--r-- | stream/tvi_v4l.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stream/tvi_v4l.c b/stream/tvi_v4l.c index e46f13797c..f5d4f08276 100644 --- a/stream/tvi_v4l.c +++ b/stream/tvi_v4l.c @@ -1657,7 +1657,7 @@ static void *video_grabber(void *data) mp_msg(MSGT_TV, MSGL_V, "\nvideo capture thread: frame delta = 0\n"); } else if ((interval - prev_interval < (long long)0.85e6/priv->fps) || (interval - prev_interval > (long long)1.15e6/priv->fps) ) { - mp_msg(MSGT_TV, MSGL_V, "\nvideo capture thread: frame delta ~ %.1lf fps\n", + mp_msg(MSGT_TV, MSGL_V, "\nvideo capture thread: frame delta ~ %.1f fps\n", (double)1e6/(interval - prev_interval)); } } @@ -1702,7 +1702,7 @@ static void *video_grabber(void *data) } } - mp_msg(MSGT_TV, MSGL_DBG3, "\nfps = %lf, interval = %lf, a_skew = %f, corr_skew = %f\n", + mp_msg(MSGT_TV, MSGL_DBG3, "\nfps = %f, interval = %f, a_skew = %f, corr_skew = %f\n", (interval != prev_interval) ? (double)1e6/(interval - prev_interval) : -1, (double)1e-6*interval, (double)1e-6*xskew, (double)1e-6*skew); mp_msg(MSGT_TV, MSGL_DBG3, "vcnt = %d, acnt = %d\n", priv->video_cnt, priv->audio_cnt); |