Skip to content

Commit edafafd

Browse files
committed
QT skip comment copy on empty data
#477
1 parent 56a0c11 commit edafafd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-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.24-202601031735';
390+
const VERSION = '1.9.24-202601080932';
391391
const FREAD_BUFFER_SIZE = 32768;
392392

393393
const ATTACHMENTS_NONE = false;

getid3/module.audio-video.quicktime.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,9 @@ public function QuicktimeParseAtom($atomname, $atomsize, $atom_data, $baseoffset
647647
}
648648
}
649649
}
650-
$this->CopyToAppropriateCommentsSection($atomname, $atom_structure['data'], $atom_structure['name']);
650+
if (!empty($atom_structure['data'])) { // https://github.com/JamesHeinrich/getID3/issues/477#issuecomment-3723356688
651+
$this->CopyToAppropriateCommentsSection($atomname, $atom_structure['data'], $atom_structure['name']);
652+
}
651653
break;
652654

653655

0 commit comments

Comments
 (0)