diff options
author | 2003-12-08 11:11:32 +0000 | |
---|---|---|
committer | 2003-12-08 11:11:32 +0000 | |
commit | ae1e09cbc8cc65d5c84b940b1e789757b5c97977 (patch) | |
tree | f9bc67d6c5c5dad5ab37ade3b0dee0d7011e65b8 /libmpdemux/demux_ogg.c | |
parent | 36aee719501203fda3b6664a8f1273077a7db53a (diff) |
1000l
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11578 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/demux_ogg.c')
-rw-r--r-- | libmpdemux/demux_ogg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpdemux/demux_ogg.c b/libmpdemux/demux_ogg.c index d7d6cc21a6..a6f03df3b5 100644 --- a/libmpdemux/demux_ogg.c +++ b/libmpdemux/demux_ogg.c @@ -1213,6 +1213,7 @@ int demux_ogg_control(demuxer_t *demuxer,int cmd, void *arg){ 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 @@ int demux_ogg_control(demuxer_t *demuxer,int cmd, void *arg){ 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: |