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