Skip to content

Commit

Permalink
Matroska PCM audio bitrate calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHeinrich committed Sep 16, 2019
1 parent 00f3fbf commit a0261cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion getid3/module.audio-video.matroska.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ public function Analyze()
switch ($trackarray['CodecID']) {
case 'A_PCM/INT/LIT':
case 'A_PCM/INT/BIG':
$track_info['bitrate'] = $trackarray['SamplingFrequency'] * $trackarray['Channels'] * $trackarray['BitDepth'];
$track_info['bitrate'] = $track_info['sample_rate'] * $track_info['channels'] * $trackarray['BitDepth'];
break;

case 'A_AC3':
Expand Down

0 comments on commit a0261cd

Please sign in to comment.