Mercurial > mplayer.hg
diff libmpdemux/demux_audio.c @ 16346:6ff303d2876b
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)
author | ods15 |
---|---|
date | Fri, 02 Sep 2005 08:32:32 +0000 |
parents | 6b86089c2edd |
children | 871e94131840 |
line wrap: on
line diff
--- a/libmpdemux/demux_audio.c Fri Sep 02 08:29:30 2005 +0000 +++ b/libmpdemux/demux_audio.c Fri Sep 02 08:32:32 2005 +0000 @@ -543,7 +543,7 @@ switch(cmd) { case DEMUXER_CTRL_GET_TIME_LENGTH: if (audio_length<=0) return DEMUXER_CTRL_DONTKNOW; - *((unsigned long *)arg)=(unsigned long)audio_length; + *((double *)arg)=(double)audio_length; return DEMUXER_CTRL_GUESS; case DEMUXER_CTRL_GET_PERCENT_POS: