]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
0020822: Impossible to create AVI file from animation (bad compilation of Qt ?)
authorouv <ouv@opencascade.com>
Tue, 6 Apr 2010 11:55:29 +0000 (11:55 +0000)
committerouv <ouv@opencascade.com>
Tue, 6 Apr 2010 11:55:29 +0000 (11:55 +0000)
src/VISU_I/VISU_TimeAnimation.cxx

index 3ad6231b0e3d9f27bc0c217947cf5486dda7f5db..43a7035fc632ac1c1bdffd5fcbf24df28e4febe0 100644 (file)
@@ -1659,7 +1659,8 @@ std::string VISU_TimeAnimation::setDumpFormat(const char* theFormat)
   QList<QByteArray> aDumpFormats = QImageWriter::supportedImageFormats();
   if (myDumpFormat.isEmpty() || 
       (aDumpFormats.indexOf(theFormat) < 0 && myDumpFormat.compare("AVI") != 0)) {
-    if (aDumpFormats.indexOf("JPEG"))
+    if (aDumpFormats.indexOf("JPEG") >= 0 ||
+        aDumpFormats.indexOf("jpeg") >= 0)
       myDumpFormat = "JPEG";
     else
       myDumpFormat = aDumpFormats.at(0);
@@ -1677,7 +1678,9 @@ void VISU_TimeAnimation::setTimeStampFrequency(CORBA::Long theFrequency)
 bool VISU_TimeAnimation::checkAVIMaker() const
 {
   QList<QByteArray> aDumpFormats = QImageWriter::supportedImageFormats();
-  if (aDumpFormats.indexOf("JPEG") < 0) return false;
+  if (aDumpFormats.indexOf("JPEG") < 0 &&
+      aDumpFormats.indexOf("jpeg") < 0)
+    return false;
 
   QString aCmd("which ");
   aCmd += myAVIMaker;