changed handling of SBR/PS AAC extension

This commit is contained in:
Martchus 2015-09-24 00:19:53 +02:00
parent 17923f9b23
commit cbf5ce624b
2 changed files with 6 additions and 0 deletions

View File

@ -472,6 +472,7 @@ void displayFileInfo(const StringVector &, const Argument &filesArg, const Argum
printProperty("Name", track->name());
printProperty("Type", track->mediaTypeName());
printProperty("Format", track->formatName());
printProperty("Extensions", track->format().extensionName());
printProperty("Raw format ID", track->formatId());
if(track->size()) {
printProperty("Size", dataSizeToString(track->size(), true));

View File

@ -175,8 +175,13 @@ void mkTrack(QByteArray &res, const AbstractTrack *track, unsigned int trackNumb
const char *fmtName = track->formatName(), *fmtAbbr = track->formatAbbreviation();
res.append(mkRow(QCoreApplication::translate("HtmlInfo", "Format"), QCoreApplication::translate("HtmlInfo", "The unabbreviated name of the track's format."), qstr(fmtName)));
if(strcmp(fmtName, fmtAbbr)) {
// format name and abbreviation differ
res.append(mkRow(QCoreApplication::translate("HtmlInfo", "Abbreviation"), QCoreApplication::translate("HtmlInfo", "The abbreviated name of the track's format."), qstr(fmtAbbr)));
}
fmtName = track->format().extensionName();
if(*fmtName) {
res.append(mkRow(QCoreApplication::translate("HtmlInfo", "Extension"), QCoreApplication::translate("HtmlInfo", "Used format extensions."), qstr(fmtName)));
}
if(!track->formatId().empty()) {
res.append(mkRow(QCoreApplication::translate("HtmlInfo", "Format/codec ID"), QCoreApplication::translate("HtmlInfo", "The raw format/codec identifier extracted from the container."), qstr(track->formatId())));
}