Update codec values

This commit is contained in:
Romain Neutron
2012-10-02 16:49:32 +02:00
parent 1ae6ec02ec
commit 9c6f1fd9dc
2 changed files with 3 additions and 3 deletions

View File

@@ -78,7 +78,7 @@ class patch_370 implements patchInterface
foreach ($XPath->query('/record/subdefs/subdefgroup/subdef/acodc') as $acodec) { foreach ($XPath->query('/record/subdefs/subdefgroup/subdef/acodc') as $acodec) {
if ($acodec->nodeValue == 'faac') { if ($acodec->nodeValue == 'faac') {
$acodec->nodeValue = 'libfaac'; $acodec->nodeValue = 'libvo_aacenc';
} }
} }

View File

@@ -63,7 +63,7 @@ class patch_370a6 implements patchInterface
$xpath = new DOMXpath($DOM); $xpath = new DOMXpath($DOM);
foreach ($xpath->query('/record/subdefs/subdefgroup[@name="video"]/subdef[@name="preview"]/acodec') as $node) { foreach ($xpath->query('/record/subdefs/subdefgroup[@name="video"]/subdef[@name="preview"]/acodec') as $node) {
$node->nodeValue = 'libfaac'; $node->nodeValue = 'libvo_aacenc';
} }
foreach ($xpath->query('/record/subdefs/subdefgroup[@name="video"]/subdef[@name="preview"]/vcodec') as $node) { foreach ($xpath->query('/record/subdefs/subdefgroup[@name="video"]/subdef[@name="preview"]/vcodec') as $node) {
@@ -148,7 +148,7 @@ class patch_370a6 implements patchInterface
$newSubdefOptionsOgg['vcodec'] = 'libtheora'; $newSubdefOptionsOgg['vcodec'] = 'libtheora';
$newSubdefOptionsOgg['acodec'] = 'libvorbis'; $newSubdefOptionsOgg['acodec'] = 'libvorbis';
$newSubdefOptionsX264['acodec'] = 'libfaac'; $newSubdefOptionsX264['acodec'] = 'libvo_aacenc';
$newSubdefOptionsX264['vcodec'] = 'libx264'; $newSubdefOptionsX264['vcodec'] = 'libx264';
$root->set_subdef($groupname, $baseSubdef->get_name() . '_mobile_webM', $baseSubdef->get_class(), false, $newSubdefOptionsWebM); $root->set_subdef($groupname, $baseSubdef->get_name() . '_mobile_webM', $baseSubdef->get_class(), false, $newSubdefOptionsWebM);