fixed length of video to encode

git-svn-id: http://yolanda.mister-muffin.de/svn@290 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
josch 2008-04-09 19:41:56 +00:00
parent 5c93a028d3
commit 7f1650a7cd

View file

@ -41,8 +41,8 @@ if($query->url_param('id'))
#if id is found
if($rowcount == 1)
{
$sth = $dbh->prepare("select sum(duration) from uploaded");
$sth->execute() or die $dbh->errstr;
$sth = $dbh->prepare("select sum(duration) from uploaded where id < ?");
$sth->execute($query->url_param('id')) or die $dbh->errstr;
($length) = $sth->fetchrow_array();
$h = int($length/3600);
$m = int($length/60-$h*60);