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:
parent
5c93a028d3
commit
7f1650a7cd
1 changed files with 2 additions and 2 deletions
|
@ -41,8 +41,8 @@ if($query->url_param('id'))
|
||||||
#if id is found
|
#if id is found
|
||||||
if($rowcount == 1)
|
if($rowcount == 1)
|
||||||
{
|
{
|
||||||
$sth = $dbh->prepare("select sum(duration) from uploaded");
|
$sth = $dbh->prepare("select sum(duration) from uploaded where id < ?");
|
||||||
$sth->execute() or die $dbh->errstr;
|
$sth->execute($query->url_param('id')) or die $dbh->errstr;
|
||||||
($length) = $sth->fetchrow_array();
|
($length) = $sth->fetchrow_array();
|
||||||
$h = int($length/3600);
|
$h = int($length/3600);
|
||||||
$m = int($length/60-$h*60);
|
$m = int($length/60-$h*60);
|
||||||
|
|
Loading…
Reference in a new issue