* * rocDecode/Picture file sample: Fixed a bug that can result in incorrect output frame count when reconfiguration occurs and with more than one iterations.

* * rocDecode: Updated change log.
Этот коммит содержится в:
jeffqjiangNew
2025-03-18 15:17:52 -04:00
коммит произвёл GitHub
родитель 86d5d51d09
Коммит 34cdd7f709
2 изменённых файлов: 6 добавлений и 3 удалений
+2 -1
Просмотреть файл
@@ -283,6 +283,7 @@ int main(int argc, char **argv) {
for (int i = 0; i < num_iterations; i++) {
int num_frames_decoded_in_loop = 0;
pkg_flags = 0;
for ( const char* file_name : file_names) {
std::ifstream in_file(file_name, std::ios::binary);
if (!in_file) {
@@ -333,8 +334,8 @@ int main(int argc, char **argv) {
break;
}
}
n_frame += viddec->GetNumOfFlushedFrames();
}
n_frame += viddec->GetNumOfFlushedFrames();
std::cout << "info: Total pictures decoded: " << n_pic_decoded << std::endl;
std::cout << "info: Total frames output/displayed: " << n_frame << std::endl;