diff options
author | ods15 <ods15@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-09-02 08:32:32 +0000 |
---|---|---|
committer | ods15 <ods15@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-09-02 08:32:32 +0000 |
commit | d620029e4b448882df613813c1f718e5a36973fd (patch) | |
tree | 35a5ebed18591f65ef9f6561d31f73ccb1c4fffa /mplayer.c | |
parent | 43844d090c5580b71228c7a13efa7ce13b37cab8 (diff) | |
download | mpv-d620029e4b448882df613813c1f718e5a36973fd.tar.bz2 mpv-d620029e4b448882df613813c1f718e5a36973fd.tar.xz |
Make -identify's 'ID_LENGTH=' print a float and not an integer.. The
accuracey may be totally fake for some demuxers (mpg), but accurate for
others.. (avi)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16347 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2032,7 +2032,7 @@ if(identify) { mp_msg(MSGT_GLOBAL,MSGL_INFO,"ID_AUDIO_RATE=%d\n", sh_audio->samplerate); mp_msg(MSGT_GLOBAL,MSGL_INFO,"ID_AUDIO_NCH=%d\n", sh_audio->channels); } - mp_msg(MSGT_GLOBAL,MSGL_INFO,"ID_LENGTH=%ld\n", demuxer_get_time_length(demuxer)); + mp_msg(MSGT_GLOBAL,MSGL_INFO,"ID_LENGTH=%.2lf\n", demuxer_get_time_length(demuxer)); } if(!sh_video) goto main; // audio-only @@ -3615,7 +3615,7 @@ if (stream->type==STREAMTYPE_DVDNAV && dvd_nav_still) break; case MP_CMD_GET_TIME_LENGTH : { - mp_msg(MSGT_GLOBAL,MSGL_INFO, "ANS_LENGTH=%ld\n", demuxer_get_time_length(demuxer)); + mp_msg(MSGT_GLOBAL,MSGL_INFO, "ANS_LENGTH=%.2lf\n", demuxer_get_time_length(demuxer)); } break; case MP_CMD_GET_VO_FULLSCREEN : { |