Skip to content

Commit 478aa14

Browse files
committed
Quicktime com.android.capture.fps
Parse as float
1 parent aed553b commit 478aa14

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

getid3/getid3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ class getID3
387387
*/
388388
protected $startup_warning = '';
389389

390-
const VERSION = '1.9.23-202509032051';
390+
const VERSION = '1.9.23-202509040923';
391391
const FREAD_BUFFER_SIZE = 32768;
392392

393393
const ATTACHMENTS_NONE = false;

getid3/module.audio-video.quicktime.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1760,8 +1760,14 @@ public function QuicktimeParseAtom($atomname, $atomsize, $atom_data, $baseoffset
17601760
$atom_structure['key_name'] = (isset($info['quicktime']['temp_meta_key_names'][$this->metaDATAkey]) ? $info['quicktime']['temp_meta_key_names'][$this->metaDATAkey] : '');
17611761
$this->metaDATAkey++;
17621762

1763+
switch ($atom_structure['key_name']) {
1764+
case 'com.android.capture.fps':
1765+
$atom_structure['data'] = getid3_lib::BigEndian2Float($atom_structure['data']);
1766+
break;
1767+
}
1768+
17631769
if ($atom_structure['key_name'] && $atom_structure['data']) {
1764-
@$info['quicktime']['comments'][str_replace('com.apple.quicktime.', '', $atom_structure['key_name'])][] = $atom_structure['data'];
1770+
@$info['quicktime']['comments'][str_replace('com.android.', '', str_replace('com.apple.quicktime.', '', $atom_structure['key_name']))][] = $atom_structure['data'];
17651771
}
17661772
break;
17671773

0 commit comments

Comments
 (0)