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 /command.c | |
parent | 8e77ab12b812106f929f349bf4ceb495989bb23b (diff) | |
download | mpv-1598302be65c77c107330dc46fd0dabface3112d.tar.bz2 mpv-1598302be65c77c107330dc46fd0dabface3112d.tar.xz |
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 'command.c')
-rw-r--r-- | command.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -80,7 +80,7 @@ static void rescale_input_coordinates(struct MPContext *mpctx, int ix, int iy, *dy = (double) iy / (double) vo->dheight; mp_msg(MSGT_CPLAYER, MSGL_V, - "\r\nrescaled coordinates: %.3lf, %.3lf, screen (%d x %d), vodisplay: (%d, %d), fullscreen: %d\r\n", + "\r\nrescaled coordinates: %.3f, %.3f, screen (%d x %d), vodisplay: (%d, %d), fullscreen: %d\r\n", *dx, *dy, opts->vo_screenwidth, opts->vo_screenheight, vo->dwidth, vo->dheight, vo_fs); } @@ -3110,7 +3110,7 @@ void run_command(MPContext *mpctx, mp_cmd_t *cmd) break; case MP_CMD_GET_TIME_LENGTH:{ - mp_msg(MSGT_GLOBAL, MSGL_INFO, "ANS_LENGTH=%.2lf\n", + mp_msg(MSGT_GLOBAL, MSGL_INFO, "ANS_LENGTH=%.2f\n", demuxer_get_time_length(mpctx->demuxer)); } break; |