Fix a bug in GetVideoCodecString function where it didn't return the correct codec string (#35)

[ROCm/rocdecode commit: 0d9b056ee5]
Bu işleme şunda yer alıyor:
Aryan Salmanpour
2023-11-06 08:20:53 -05:00
işlemeyi yapan: GitHub
ebeveyn 0c7e31bbfa
işleme 174b672159
2 değiştirilmiş dosya ile 3 ekleme ve 3 silme
+1 -1
Dosyayı Görüntüle
@@ -104,7 +104,7 @@ int main(int argc, char **argv) {
int pciBusID, pciDomainID, pciDeviceID;
viddec.GetDeviceinfo(deviceName, gcnArchName, pciBusID, pciDomainID, pciDeviceID);
std::cout << "info: Using GPU device " << deviceId << deviceName << "[" << gcnArchName << "] on PCI bus " <<
std::cout << "info: Using GPU device " << deviceId << " - " << deviceName << "[" << gcnArchName << "] on PCI bus " <<
std::setfill('0') << std::setw(2) << std::right << std::hex << pciBusID << ":" << std::setfill('0') << std::setw(2) <<
std::right << std::hex << pciDomainID << "." << pciDeviceID << std::dec << std::endl;
std::cout << "info: decoding started, please wait!" << std::endl;
+2 -2
Dosyayı Görüntüle
@@ -91,11 +91,11 @@ static const char * GetVideoCodecString(rocDecVideoCodec eCodec) {
{ rocDecVideoCodec_MPEG2, "MPEG-2" },
{ rocDecVideoCodec_MPEG4, "MPEG-4 (ASP)" },
{ rocDecVideoCodec_H264, "AVC/H.264" },
{ rocDecVideoCodec_JPEG, "M-JPEG" },
{ rocDecVideoCodec_HEVC, "H.265/HEVC" },
{ rocDecVideoCodec_AV1, "AV1" },
{ rocDecVideoCodec_VP8, "VP8" },
{ rocDecVideoCodec_VP9, "VP9" },
{ rocDecVideoCodec_AV1, "AV1" },
{ rocDecVideoCodec_JPEG, "M-JPEG" },
{ rocDecVideoCodec_NumCodecs, "Invalid" },
};