minor changes in list of codecs
authorStepan777 <stepik-777@mail.ru>
Sun, 12 Aug 2012 23:05:15 +0400
changeset 7544 a72ace943bfd
parent 7542 37ef1891efe2
child 7565 00568d3054d0
minor changes in list of codecs
QTfrontend/util/libav_iteraction.cpp
--- a/QTfrontend/util/libav_iteraction.cpp	Sun Aug 12 03:35:18 2012 +0400
+++ b/QTfrontend/util/libav_iteraction.cpp	Sun Aug 12 23:05:15 2012 +0400
@@ -95,6 +95,9 @@
         if (strcmp(pCodec->name, "real_144") == 0)
             continue;
 
+        if (!pCodec->long_name || strlen(pCodec->long_name) == 0)
+            continue;
+
         if (pCodec->type == AVMEDIA_TYPE_VIDEO)
         {
             if (pCodec->supported_framerates != NULL)
@@ -120,7 +123,7 @@
                 continue;
             bool s16Supported = false;
             for (const AVSampleFormat* pfmt = pCodec->sample_fmts; *pfmt != -1; pfmt++)
-                if (*pfmt == AV_SAMPLE_FMT_S16/* || *pfmt == AV_SAMPLE_FMT_FLT*/)
+                if (*pfmt == AV_SAMPLE_FMT_S16)
                 {
                     s16Supported = true;
                     break;
@@ -159,7 +162,7 @@
             codec.isRecomended = true;
 
         // FIXME: remove next line
-        codec.longName += QString(" (%1)").arg(codec.shortName);
+        //codec.longName += QString(" (%1)").arg(codec.shortName);
     }
 
     // get list of all formats
@@ -193,7 +196,7 @@
         format.longName = QString("%1 (*.%2)").arg(pFormat->long_name).arg(ext);
 
         // FIXME: remove next line
-        format.longName += QString(" (%1)").arg(format.shortName);
+        //format.longName += QString(" (%1)").arg(format.shortName);
 
         format.isRecomended = strcmp(pFormat->name, "mp4") == 0 || strcmp(pFormat->name, "avi") == 0;