* 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.
Este cometimento está contido em:
cometido por
GitHub
ascendente
e5f06d4fcc
cometimento
5ffe20cdd7
@@ -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;
|
||||
}
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador