* rocDecode: Fixed a regression that resulted in CI test failures. (#633)

- Need to check output surface info for every decode call to catch video size change or decode errors.

[ROCm/rocdecode commit: 5ffe20cdd7]
This commit is contained in:
Jeff Jiang
2025-08-15 12:50:13 -04:00
committed by GitHub
parent ff4d947cc6
commit e6450e6729
@@ -358,7 +358,7 @@ int main(int argc, char **argv) {
n_frame_returned = viddec->DecodeFrame(pvideo, n_video_bytes, pkg_flags, pts, &decoded_pics);
// get output surface info after the first decoded frame
if (!n_frame && (n_frame_returned > 0) && !viddec->GetOutputSurfaceInfo(&surf_info)) {
if (!n_frame && !viddec->GetOutputSurfaceInfo(&surf_info)) {
std::cerr << "Error: Failed to get Output Surface Info!" << std::endl;
break;
}