* 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]
이 커밋은 다음에 포함됨:
1 부모
ff4d947cc6
커밋
e6450e6729
1 파일이 변경됨
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
새 이슈에서 참조
사용자 차단