]> git.sesse.net Git - kdenlive/commitdiff
New versions of FFmpeg are likely not to have libfaac since it requires
authorDan Dennedy <dan@dennedy.org>
Wed, 16 Sep 2009 03:40:51 +0000 (03:40 +0000)
committerDan Dennedy <dan@dennedy.org>
Wed, 16 Sep 2009 03:40:51 +0000 (03:40 +0000)
--enable-nonfree, and a native AAC encoder is available since July 8,
2009. Continued.

svn path=/trunk/kdenlive/; revision=3896

src/renderwidget.cpp

index f3ec0892a0847f378b4357afbc87d0b586a8c1c1..6894de120a5b6d93e0c42ec054cceef0e48d4bb2 100644 (file)
@@ -1325,7 +1325,12 @@ void RenderWidget::parseFile(QString exportFile, bool editable)
                 // replace vorbis with libvorbis
                 params = params.replace("vorbis", "libvorbis");
             }
-            prof_extension = profileElement.attribute("extension");
+                       if (replaceLibfaacCodec && params.contains("acodec=libfaac")) {
+                               // replace libfaac with aac
+                               params = params.replace("libfaac", "aac");
+                       }
+
+                       prof_extension = profileElement.attribute("extension");
             if (!prof_extension.isEmpty()) extension = prof_extension;
             item = new QListWidgetItem(profileName, m_view.size_list);
             item->setData(GroupRole, groupName);