Skip to content

Commit

Permalink
#440 Mpeg duration error due to error in GOP parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHeinrich committed Mar 26, 2024
1 parent 449956e commit 143af33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion getid3/getid3.php
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ class getID3
*/
protected $startup_warning = '';

const VERSION = '1.9.23-202403230855';
const VERSION = '1.9.23-202403260825';
const FREAD_BUFFER_SIZE = 32768;

const ATTACHMENTS_NONE = false;
Expand Down
4 changes: 4 additions & 0 deletions getid3/module.audio-video.mpeg.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,10 @@ public function Analyze() {
$GOPheader['time_code'] = sprintf('%02d'.$time_code_separator.'%02d'.$time_code_separator.'%02d'.$time_code_separator.'%02d', $GOPheader['time_code_hours'], $GOPheader['time_code_minutes'], $GOPheader['time_code_seconds'], $GOPheader['time_code_pictures']);

$info['mpeg']['group_of_pictures'][] = $GOPheader;
} else {
// https://github.com/JamesHeinrich/getID3/issues/440
$this->warning('group_of_pictures['.$GOPcounter.'] no valid bitratemode');
$info['mpeg']['group_of_pictures'][] = array();
}
break;

Expand Down

0 comments on commit 143af33

Please sign in to comment.