Use a pointer for the horizontal_pitch parameter in the rocDecGetVideoFrame API (#475)

This commit is contained in:
Aryan Salmanpour authored and GitHub committed 2024-12-05 19:22:07 -05:00
1 parent 0cf22e1cec
commit 91ab3b1577
5 files changed
+6 -5

No files matched your search

+1 -1
View File
@@ -176,7 +176,7 @@ rocDecReconfigureDecoder(rocDecDecoderHandle decoder_handle, RocdecReconfigureDe
/************************************************************************************************************************/
rocDecStatus ROCDECAPI
rocDecGetVideoFrame(rocDecDecoderHandle decoder_handle, int pic_idx,
void *dev_mem_ptr[3], uint32_t (&horizontal_pitch)[3], RocdecProcParams *vid_postproc_params) {
void *dev_mem_ptr[3], uint32_t *horizontal_pitch, RocdecProcParams *vid_postproc_params) {
if (decoder_handle == nullptr || dev_mem_ptr == nullptr || horizontal_pitch == nullptr || vid_postproc_params == nullptr) {
return ROCDEC_INVALID_PARAMETER;
}