diff libmpdemux/demux_real.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 9081ae3a702c
line wrap: on
line diff
--- a/libmpdemux/demux_real.c	Fri Sep 02 08:29:30 2005 +0000
+++ b/libmpdemux/demux_real.c	Fri Sep 02 08:32:32 2005 +0000
@@ -1855,7 +1855,7 @@
 	    if (priv->duration == 0)
 	        return DEMUXER_CTRL_DONTKNOW;
 	    
-	    *((unsigned long *)arg) = priv->duration;
+	    *((double *)arg) = (double)priv->duration;
 	    return DEMUXER_CTRL_OK;
 
 	case DEMUXER_CTRL_GET_PERCENT_POS: