summaryrefslogtreecommitdiffstats
path: root/libmpdemux/demux_rawdv.c
diff options
context:
space:
mode:
authorods15 <ods15@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-09-02 08:32:32 +0000
committerods15 <ods15@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-09-02 08:32:32 +0000
commitd620029e4b448882df613813c1f718e5a36973fd (patch)
tree35a5ebed18591f65ef9f6561d31f73ccb1c4fffa /libmpdemux/demux_rawdv.c
parent43844d090c5580b71228c7a13efa7ce13b37cab8 (diff)
downloadmpv-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 'libmpdemux/demux_rawdv.c')
-rw-r--r--libmpdemux/demux_rawdv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/demux_rawdv.c b/libmpdemux/demux_rawdv.c
index d5d4c5761d..1248b468c9 100644
--- a/libmpdemux/demux_rawdv.c
+++ b/libmpdemux/demux_rawdv.c
@@ -234,7 +234,7 @@ static int demux_rawdv_control(demuxer_t *demuxer,int cmd, void *arg) {
switch(cmd) {
case DEMUXER_CTRL_GET_TIME_LENGTH:
- *((unsigned long *)arg)=frames->frame_number / sh_video->fps;
+ *((double *)arg)=(double)frames->frame_number / sh_video->fps;
return DEMUXER_CTRL_OK;
case DEMUXER_CTRL_GET_PERCENT_POS: