Take start time into consideration when calculation percentage position

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19165 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2006-07-23 09:05:10 +00:00
parent 6ca4f9ea81
commit 902b1a22b1
1 changed files with 1 additions and 1 deletions

View File

@ -404,7 +404,7 @@ static int demux_lavf_control(demuxer_t *demuxer, int cmd, void *arg)
if (priv->avfc->duration == 0)
return DEMUXER_CTRL_DONTKNOW;
*((int *)arg) = (int)(priv->last_pts*100 / priv->avfc->duration);
*((int *)arg) = (int)((priv->last_pts - priv->avfc->start_time)*100 / priv->avfc->duration);
return DEMUXER_CTRL_OK;
case DEMUXER_CTRL_SWITCH_AUDIO:
{