changeset 11577:0645c0fc22bf

1000l
author alex
date Mon, 08 Dec 2003 11:11:32 +0000
parents 2c9e2da67647
children b48d7fca8c73
files libmpdemux/demux_ogg.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ogg.c	Mon Dec 08 09:51:10 2003 +0000
+++ b/libmpdemux/demux_ogg.c	Mon Dec 08 11:11:32 2003 +0000
@@ -1213,6 +1213,7 @@
   ogg_demuxer_t* ogg_d = demuxer->priv;
   ogg_stream_t* os;
   float rate;
+
   if(demuxer->video->id >= 0) {
     os = &ogg_d->subs[demuxer->video->id];
     rate = os->samplerate;
@@ -1225,8 +1226,7 @@
     switch(cmd) {
 	case DEMUXER_CTRL_GET_TIME_LENGTH:
 	    if (ogg_d->final_granulepos<=0) return DEMUXER_CTRL_DONTKNOW;
-        unsigned long length = ogg_d->final_granulepos / rate;
-	    *((unsigned long *)arg)=length;
+	    *((unsigned long *)arg)=ogg_d->final_granulepos / rate;
 	    return DEMUXER_CTRL_GUESS;
 
 	case DEMUXER_CTRL_GET_PERCENT_POS: