# HG changeset patch # User Stepan777 # Date 1344798315 -14400 # Node ID a72ace943bfd86097bab67a298eeaa0113fc429b # Parent 37ef1891efe23eebe7cf9940214cf722b5d2ed03 minor changes in list of codecs diff -r 37ef1891efe2 -r a72ace943bfd 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;