* Roc decoder utility: Do not throw exceptions on picture decode or decoder reconfig errors. (#577)

- This allows the decoder to be able to handle more AV1 error streams.
Цей коміт міститься в:
jeffqjiangNew authored and GitHub committed 2025-05-01 12:50:28 -04:00
1 джерело 4b10fa5a1a
коміт d751b24ed5
2 files changed
+7 -3

No files matched your search

+1 -1
Переглянути файл
@@ -59,7 +59,7 @@ rocDecStatus Av1VideoParser::ParseVideoData(RocdecSourceDataPacket *p_data) {
curr_pts_ = p_data->pts;
if (ParsePictureData(p_data->payload, p_data->payload_size) != PARSER_OK) {
ERR("Error occurred in picture data parsing.");
return ROCDEC_SUCCESS;
return ROCDEC_RUNTIME_ERROR;
}
} else if (!(p_data->flags & ROCDEC_PKT_ENDOFSTREAM)) {
// If no payload and EOS is not set, treated as invalid.