summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflashk <flashk@ampache>2007-12-29 22:14:31 +0000
committerflashk <flashk@ampache>2007-12-29 22:14:31 +0000
commit51c14c05da738e11162af88cb17eb46f45d4999d (patch)
treeb85fb5a95da3a877650c59faef8900f1483e803a
parentecdb3dab032c7ff1c0c32c6ee0138a3950cd0df0 (diff)
downloadampache-51c14c05da738e11162af88cb17eb46f45d4999d.tar.gz
ampache-51c14c05da738e11162af88cb17eb46f45d4999d.tar.bz2
ampache-51c14c05da738e11162af88cb17eb46f45d4999d.zip
Added support for mp3 files with special constant bitrate mode
-rw-r--r--lib/general.lib.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/general.lib.php b/lib/general.lib.php
index fcf69e32..eb4d5ea3 100644
--- a/lib/general.lib.php
+++ b/lib/general.lib.php
@@ -172,6 +172,12 @@ function clean_tag_info($results,$key,$filename) {
$info['bitrate'] = intval($results['info']['bitrate']);
$info['rate'] = intval($results['info']['sample_rate']);
$info['mode'] = $results['info']['bitrate_mode'];
+
+ // Convert special version of constant bitrate mode to cbr
+ if($info['mode'] == 'con') {
+ $info['mode'] = 'cbr';
+ }
+
$info['size'] = $results['info']['filesize'];
$info['mime'] = $results['info']['mime'];
$into['encoding'] = $results['info']['encoding'];