Added AVI x-msvideo parsing
This commit is contained in:
30
app/Media/MSVideo/Containers/rlist/isft.php
Normal file
30
app/Media/MSVideo/Containers/rlist/isft.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Media\MSVideo\Containers\rlist;
|
||||
|
||||
use App\Media\MSVideo\Container;
|
||||
|
||||
class isft extends Container
|
||||
{
|
||||
public function __construct(int $offset,int $size,string $filename,bool $be,?string $data)
|
||||
{
|
||||
parent::__construct($offset,$size,$filename,$be);
|
||||
|
||||
$this->cache = collect(['software'=>rtrim($data)]);
|
||||
|
||||
// For debugging
|
||||
if (FALSE)
|
||||
$this->debug = hex_dump($data ?: $this->data());
|
||||
}
|
||||
|
||||
public function __get(string $key): mixed
|
||||
{
|
||||
switch ($key) {
|
||||
case 'software':
|
||||
return $this->cache->get('software');
|
||||
|
||||
default:
|
||||
return parent::__get($key);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user